Devise: "Email can't be blank" in password reset

Created on 23 Feb 2015  Â·  4Comments  Â·  Source: heartcombo/devise

I have no idea how to fix this, I tried adding email with the strong params suggestions, no luck....

I can't seem to figure out why this is happening and this is making me crazy :(

Most helpful comment

@mikeki Did you change your form method to put? That route has a get method, which is invoked unless specified.

All 4 comments

Please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only.

this is just an example
def configure_permitted_parameters
devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:username, :email, :password,:password_confirmation)}
end
you are missing :email, add it and it will work fine

I did added email, it is not working and that's why I opened this issue :/
On Feb 24, 2015 10:57 AM, "Lalit Yadav" [email protected] wrote:

this is just an example
def configure_permitted_parameters
devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:username, :email,
:password,:password_confirmation)}
end
you are missing :email, add it and it will work fine

—
Reply to this email directly or view it on GitHub
https://github.com/plataformatec/devise/issues/3488#issuecomment-75821156
.

@mikeki Did you change your form method to put? That route has a get method, which is invoked unless specified.

Was this page helpful?
0 / 5 - 0 ratings