[Rails] Unpermitted Parameters 500 error
I have some models with lots of deeply nested attributes.
Before when I saved these models using update_attributes, I had no problems, but I recently updated to Rails 4 and started using strong parameters. Now I'm getting a `found unpermitted parameters`
error.
`attr_accessible
` simply ignored parameters not permitted for mass-assignment and saved the others, but I guess strong parameters works differently?
Is there any way to make Rails simply ignore the unpermitted parameters and just update the parameters that are permitted?
Removing all the unpermitted params from my model would be a huge pain.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/61b4689d-806e-4bd9-b4ca-442d87f7bc4d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home