Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rails devise edit_user_password_path

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) %>

like image 555
SpaceMonkey Avatar asked Jul 28 '11 13:07

SpaceMonkey


1 Answers

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.

like image 129
Abdo Avatar answered Oct 23 '22 12:10

Abdo