I cannot route to the edit_user_password_path on my project. It just routes to home. Can someone please assist?
<%= link_to "Change Password", edit_user_password_path(current_user) %>
The answer to this question explains the issue: Showing the devise edit password screen
In brief, the PasswordsController is used for password resetting when a user is not signed in. If you're signed in, it redirects you to the root path.
In order to edit the password, you want to use the RegistrationsController instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With