I ran into this error when trying to work on a user profile edit page that used Devise.
The error is actually a red herring; what it means is that your update of the user failed or didn't do what you expected, and it's trying to fall back to a default page.
Take a look at your user save methods and callbacks and confirm that the user method is doing what you expect. In my particular case, I had a before_validation callback that set a field on the user that happened to be false. The callback returned that false and mistakenly interpreted it as a failure. So I had to explicitly return true to indicate that the method succeeded.
Subscribe to:
Post Comments (Atom)
1 comment:
Hi C.G,
Thanks for this. I'm currently experiencing this. In my case, I the error began when I added an additional user type to my devise user model.
The newly added user type works but the old raises this error when ever I'm creating a new user through devise sign up(Devise registration controller).
I haven't found the bug, I've done resets and rollbacks.
The only thing I'm guessing haven observed my logs is that the user_id: isn't being passed, only the email is. It been working fine all the while, I'm still trying to understand why? Any idea?
Post a Comment