Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

baffo88's Profile

GitHub User: baffo88

Comments by baffo88

Avatar

That's because the protection feature called MassAssignmentSecurity is active. For a quick and dirty (very dirty) fix just comment the following line in Application.rb
config.active_record.whitelist_attributes = true
This will disable this protection for ALL your models.
You can read something more about it here: Rails Tip #7: Mass Assignment Security