ruby on rails - Override PasswordsController in Devise to change password when the user is already signed in -
i want add feature app in when user signed in can change password clicking on change password link.but when click on link redirects current page.
<%= link_to 'change password', edit_user_password_path %>
can tell me solve problem?
because can't write comment (my reputation low) i'll write answer instead.
take here:
rails devise edit_user_password_path
this should solve problem.
in short: devise passwordscontroller can used if user signed_out.
Comments
Post a Comment