2
votes

I'm using a non customized version of Devise in my app and am running into some issues with the reset password functionality.

The default reset password form's method is to PUT but upon submitting the form, it POSTs which causes it to give me an error about a missing email field. The POST/create method in the PasswordsController of Devise is emailing the user the password reset link. The PUT/update method is for the actual resetting of the password.

None of the devise stuff is altered in any way. Devise version is 3.5.7 and Rails is 4.2.6

I've put all of the relevant code in a Gist here: https://gist.github.com/dsarhadian/a7950e480bffc2906f77b0e542792f5a

Any help is truly appreciated...

1

1 Answers

2
votes

In your logs it says:
Rendered devise/passwords/edit.html.erb within layouts/application (3.3ms)

Are you sure that the edit.html.erb file renders the form.html.erb view?
Because when I look at the source.html file, it seems like it is rendering a different form which has the path for the POST method.
The form.html.erb uses the PUT method. So it seems to me like the wrong form is rendered.