开发者

authenticate user with devise rails 3 in any controllers

i use rails 3 and devise plu开发者_运维问答gin version 1.1.2. How i can authenticate user through email and password in any controllers?


Solved. There is public method sign_in @user, where @user is your user object with attr, such as password and email for example

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜