-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unpermitted parameter errors #432
Comments
any suggestions about how to debug this beast? |
Did you ever find a solution to this? I'm hitting the same error. |
I found a solution. The issue for me was that the before_filter calls were happening out of order, so the parent filters were being called before the child. Changing the call fixed it for me.
|
Sounds like we have an accepted solution here, closing for now. |
Note: Its |
Hi,
I am using devise-token-auth gem on Rails 4.2, and I've added a field nickname to the User model. I am trying to implement this via an override of the gem controller placed at
app/controllers/users/registration_controller.rb
the routes are configured like this:
and they seem right:
When i hit a sign_in request
Then I try to place the update request via curl:
But the update call never gets to runs. This is what shows the server after the request:
and the json reply to curl is:
Just to troubleshoot the issue, I added the strong parameter sanitizers to the Application Controller as well:
But the
binding.pry
inside theconfigure_permitted_parameters
do not stop execution during the update request, which makes me presume that the issue is that the routes look right, but they really aren'tFor reference, here is my Gemfile
The text was updated successfully, but these errors were encountered: