我有我的表格update_without_password
方法,但我会知道如何更新我的密码在我的edit_user_registration_path
。更新密码设计
我意识到我不能更改我的密码,如果我不给我当前的密码, 即使使用update_wothout_password
方法,我可以更改我的edit_user_form中的密码吗?
我登记控制器:
def update_resource(resource, params)
resource.update_without_password(params)
end
def after_update_path_for(resource)
biens_path(resource)
end
是'不工作update_without_password'方法? – Nithin
你能在问题陈述中清楚地表达出来吗? – Nithin
update_without_password工作,但如果添加它,我不能改变我的密码,因为要更改密码,我需要当前密码字段我会知道一种方法来更改密码在编辑注册路径,而不是强制给出当前密码@Nithin –