ruby-on-rails – rails设计edit_user_password_path
发布时间:2020-12-17 02:29:47 所属栏目:百科 来源:网络整理
导读:我无法路由到项目的edit_user_password_path.它只是路线到家.有人可以帮忙吗? %= link_to“更改密码”,edit_user_password_path(current_user)% 解决方法 这个问题的答案解释了这个问题: Showing the devise edit password screen 简而言之,PasswordsCon
我无法路由到项目的edit_user_password_path.它只是路线到家.有人可以帮忙吗?
<%= link_to“更改密码”,edit_user_password_path(current_user)%> 解决方法
这个问题的答案解释了这个问题:
Showing the devise edit password screen 简而言之,PasswordsController用于在用户未登录时重置密码.如果您已登录,则会将您重定向到根路径. 要编辑密码,您需要使用RegistrationsController. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |