Joined March 2013
·
Posted to
Keep your Heroku apps awake with KeepAwake
over 1 year
ago
Your App is not working. It's giving me a 500 Error.
Posted to
Rails merge scopes
over 1 year
ago
You should use | instead of & if you want to merge. Also I think you don't need to do Answer.useranswers, just call useranswers. Scopes are class methods and you are calling a scope from another, so you should not have any kind of problem with that.
Achievements
147 Karma
9,365 Total ProTip Views
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Charity
Fork and commit to someone's open source project in need
Forked
Have a project valued enough to be forked by someone else
Mongoose
Have at least one original repo where Ruby is the dominant language
What exactly would be a form class? If you mean something like Reform gem, you'll be coupling you parameters logic in a form class, and the form would be knowing too much and so you'll be breaking the Single Responsability Principle.