Closed kuahyeow closed 7 years ago
I note that in assign_nested_attributes_for_collection_association
, the attributes was converted using to_unsafe_h
. Perhaps the same treatment can be done in this method ?
Yeah that's the solution. Feel free to create a PR.
I am upgrading a working application from rails 5.0.6 to rails 5.1.4. I am using protected_attributes_continued 1.3.0. I am getting the following error when I do things like User.new(params[:user]
ActionController::UnfilteredParameters:
unable to convert unpermitted parameters to hash
This seems to be related to this issue, how do I fix this?
Well your example says prams
it should be params
Thanks, that was a typo, I have corrected it. The issue seems to be that params is no longer a hash, so strong parameters is automatically enforced when you try to access it.
It looks like it's coming from
assign_nested_attributes_for_one_to_one_association
.