Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Strong params, curl and Rails 5 API #211
I'm falling foul of the assign_params method, here: https://github.com/nviennot/nobrainer/blob/master/lib/no_brainer/document/attributes.rb#L73
Using Rails 5 RC1.
All very standard. When using curl to test the api, I'm hitting the error inside assign_attributes. I have the attributes in the controller, whitelisted.
It works fine if I pass them as a hash, which is what the error is checking for:
I assume it's doing this because it thinks I'm trying to submit attributes that are not whitelisted. Is this a bug?