Few Big Models or Many Smaller Namspaced models?
... I never really thought about the fact that my controllers don't have to map directly to models :/ That makes perfect sense. I suppose I will do a generic Page controller, then site(yelp, ...
Rich Smith
replied
•
Solved
7
Rails
Whats the best way to handle errors, when creating new records?
Yeah, this is something I will have to look into in more detail. I am new to the whole scraping of sites, but it's been a really cool learning experience and I am much more confident.I did ha...
Alan Reid
replied
•
Solved
7
Ruby
How do I transfer user data on delete
That's a good idea. Having a step-by-step process for deletion. Then you can just capture the new user who going to get everything transferred to. Best of luck. Hope I was able to help a little
William Kennedy
replied
•
Solved
6
Rails
Update an attribute on belongs_to
Ok i seemed to have got it to work as i wanted, thanks for the guidance Chris :D
Alan Reid
replied
•
Solved
4
Rails
local_time gem: Where to place the I18n file to modify the string literals?
I managed to get valid YML, translated it, but the name of the months remains in english.EDIT. In this issue they talk about it, tried what the last comment says, still no luck. ht...
Ernesto Gimeno
replied
•
Solved
6
Rails
How do I make my Stripe Charges more robust [Background Worker & Idempotent]?
Sounds like plenty to get the charge done to me. You can add additional logic as needed if your requirements change.
eminkel
replied
•
Solved
9
Rails
Form errors not displaying
No problemo! It's one of those subtleties of Rails that you have to learn the frustrating / hard way. 😜
Chris Oliver
replied
•
Solved
4
Rails
How do I display related or similar Ads by currency on the Ad show page?
Thanks a lot Jack! It should be 'ad' in the show page instead of '@ad' and ads_controller:def show@related_ads = Ad.where(currency_id: @ad.currency_id)This works fine.
Charlie Kay
replied
•
Solved
3
Rails
rendering issue
in my home pagedef home @status_update = StatusUpdate.newend
Matthew J Martin
replied
•
Solved
3
Rails
Having a little problem running the 'rails server' command...
Hi there,I'm new to the whole programming and I'm trying to figure out why I can't seem to run the 'rails server' command if anyone can help me out that would be cool. The code below is what I get ...
Codesaurus1
posted
•
Solved
1
Rails
How do I charge a user to create a post using Stripe?
Hey Chris...how do you differentiate your form, so that when a user edits a post they've already paid for, the Stripe pay button is replaced with a typical 'Submit' button. Thanks in advance
Taylor Cooney
replied
•
Solved
4
Rails
Best Method For User's Dashboard?
Hi Rich, When I do dashboards, I generally create a singular route, e.g. `resource :dashboard, only: :show`.That way, you can have a singular controller name. To organize the data that will be...
Kevin Vanzandberghe
replied
•
Solved
2
Rails
How do I send send a erb template as a string in a json response?
Hey Morgan, I haven't had a chance to play with this yet, but I'll be needing to for a project here soon. What I had bookmarked to come back to when I started was https://coderwall.com/p/ov8eha/ren...
Jacob Montgomery
replied
•
Solved
2
Rails