我有我的表格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 –