RailsCasts Pro episodes are now free!

Learn more or hide this

Szymon Nowak's Profile

GitHub User: szimek

Comments by Szymon Nowak

Avatar

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