开发者

NameError in Devise/registrationsController#create

开发者 https://www.devze.com 2023-01-29 12:59 出处:网络
Im trying to use the gem Devise for a admin authentication. Ive used i开发者_Python百科t before when I only wanted a user login but now I would like to have just a admin login. I followed the railscas

Im trying to use the gem Devise for a admin authentication. Ive used i开发者_Python百科t before when I only wanted a user login but now I would like to have just a admin login. I followed the railscast for it and instead of naming the model User I gave it the name Admin. Everything worked fine until I tried to login then I got this error message:

uninitialized constant Devise::Encryptors::Bcrypt

I cant seem to find the problem. I have compared the code in the project with the other one I did and there is no difference. Is the problem due to the fact that I´m using Admin the wrong way?! Should I not use it as you would with a user?! Thankful for all help.

Regards


That encryption method appears to have been removed from Devise.

See: https://github.com/plataformatec/devise/issues/issue/527

0

精彩评论

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