poporul
poporul

Reputation: 1161

authenticate user with devise rails 3 in any controllers

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

Answers (1)

poporul
poporul

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

Related Questions