Joined March 2013
·

Ezequiel Delpero

Argentina
·
·
·

Posted to Strong Parameters the Right Way over 1 year ago

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.

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,122 Total ProTip Views