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) %>
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) %>
I faced the same issue
new_user_password_path and edit_user_password_path, both redirects to the root page. If you are signed in, it will redirect to root page and if user is not signed in, it will ask for sign in and then it redirects to root page.
For this you need to use edit_user_registration_path of devise RegistrationController.
Devise::PasswordsController#edit
is for non-authenticated users so it will definitely move to the root path which is after the sign_in path because you are already sign_in. So you have to use Devise::RegistrationsController#edit to changing your password but you can open this link in incognito mode or your can try to remove your browser cookies.