Devise, allowing users to change passwords

后端 未结 3 1866
攒了一身酷
攒了一身酷 2021-01-12 07:04

I have an application that has a custom registration controller, called users_controller, for devise because only Admin is able to create users. I want to allow users to ch

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-12 07:40

    If you have a devise model User, you can use this path to route to the change password page.

    edit_user_registration_path
    

    Just use this in your view as:

    <%= link_to 'Change Password', edit_user_registration_path %>
    

    This should do the trick, it works for me.

提交回复
热议问题