开发者

How to get rid of devise current password requirement when editing a user?

I've followed the instructions here:

http://github.com/plataformatec/devise/wiki/How-to-edit-user-form-without-current-password

But it seems to ignore that and still validate and require current pa开发者_开发百科ssword.

In fact, I can do whatever I want to app/controllers/registrations_controller.rb including putting tonnes of syntax errors in, and it still asks for the current password to be present.

What am I missing?


Hard to quess, as you pasted no code, but it looks like you need to point devise to a different controller:

devise_for :user, :controllers => { :sessions => "..." }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜