RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: szimek
You don't have to. If you're not using strong_parameters, just use :without_protection => true. See the last example at http://api.rubyonrails.org/classes/ActiveRecord/AttributeAssignment.html#method-i-assign_attributes
:without_protection => true
You don't have to. If you're not using strong_parameters, just use
:without_protection => true
. See the last example at http://api.rubyonrails.org/classes/ActiveRecord/AttributeAssignment.html#method-i-assign_attributes