One form, two separate controllers, created at once.
you can use association between article and user and use nested attributes in it.naveen kumar replied • Solved
Opt-in to receiving thread notifications
![doh!](https://avatars2.githubusercontent.com/u/7593664?v=3&u=6f6fdc66e137078fd79d1cd403abfc016458f08e&s=400)Jacob Montgomery replied • Solved
Optimizing Queries in Service Objects
It's not necessarily a single query that would illustrate the problem, it's how it's used that's the problem. That's why I say it's not something a more experienced developer may get caught by, but...Jacob Montgomery replied • Solved
What are the best practices for generating SEO friendly urls in Rails 5?
To follow-up on Chris' last reply, in the past I've done: `self.slug = SecureRandom.hex(2)`. on a model create method and then added that as part of the slug. --- [SecureRandom (apidoc...eelcoj replied • Solved
Updating sort_index attr on a collection of models
Yeah, I thought about that too, or grabbing before and behind. The gem is pretty quicky but it'll do in a pinch! Thanks for all the help!Sean Washington replied • Solved
How to add or call a particular action in all the controllers ?
You're going to want to store the action details somehow in a method as Jacob mentioned called `track_user` or whatever naming convention you deem fit. You'll probably have to write the method tha...nynhex replied • Solved
Node.js is pretty nice. I use it a lot at work. It's designed for non-blocking operations from the ground up, so where in Rails you'd have to use threads or concurrency libraries to speed things up...Matthew Welke replied • Solved
Deck Builder App. How do I query only decks you can make with the cards in your inventory?
Thanks Francisco! I corrected the typo.Matias Fernandez replied • Solved
Everyone's Been Bitten Before - Whitespaces/Unwanted Characters in User Input
Hey Chris, thanks for the awesome and details response, and so quickly too! Great details consideration there, I think you're right on the money with the two points around callbacks and gems/de...Nick J replied • Solved
What text editor are you using for GoRails Forum?
Thanks Jacob! Awesome Chris! I will take a look.Lauro replied • Solved
[HATCH] Error deploying app
![bill bill bill bill](http://i.imgur.com/F0sAGUr.gif)Chris Oliver replied • Solved
Autoloading models not working
Ah glad you got that fixed. I was going to reply yesterday and got distracted. I figured that there was something up with the folder naming and the naming of the classes. Rails always expects you t...Chris Oliver replied • Solved
why drop down menu (Account Setting)is not showing in sidebar?
i found the problem here , some css class issuenaveen kumar replied • Solved
How to add ssl to the CDN of AWS
I got it working. I need it to use ssl with a wildcard for subdomain for the assets. Now im using cdn.mysite.com with dns and works great.Francisco Quinones replied • Solved
Is it necessary to use authentication with an API if there aren't really any 'users'?
EDIT: Yeah, guest users / anonymous users are overkill. I just dont need traditional authentication at all.Greg Blass replied • Solved
Extend Sprockets to bundle mustache templates
Chris, you can create an episode about this. I'll share more detailed code example if you like :)Alex Musayev replied • Solved
why destroy action is called two times.
when i put this link_to in the modal it automatically started working correctly . You are right modal trying to update after the destroy , the code is working fine now.naveen kumar replied • Solved
Get Paperclip file before save
Turns out it is as easy as this ``` Paperclip.io_adapters.for(model.attachment).read ``` I tried this piece of code yesterday but didn't work and only gave me nil. The cause is I write that...Agung Setiawan replied • Solved
Is it Ok to use "Error" as a model name in Rails project?
Alex, I think you are safe using `Error` has a class/model name as it doesn't collide with stdlib in Ruby or Rails. In fact I have a similar model in one of my older apps and it never caused is...shakycode replied • Solved