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
精彩评论