Reputation: 1161
i use rails 3 and devise plugin version 1.1.2. How i can authenticate user through email and password in any controllers?
Upvotes: 1
Views: 3734
Reputation: 1161
Solved. There is public method sign_in @user, where @user is your user object with attr, such as password and email for example
Upvotes: 4