Custom devise authenticate method in user model rails 3?

Up vote 3 down vote favorite 1 share g+ share fb share tw.

So I could do User. Authenticate('user123', 'secret123', 'attr1') ruby ruby-on-rails-3 authentication devise link|improve this question asked Mar 30 '11 at 16:33ed1t599216 80% accept rate.

Were you able to use the method User. Authenticate(email, password). Actually when I called a it I got an error - undefined method `authenticate'.

Does deveise provide a method like this? Can share how you created a custom method authenticate. – Amal Kumar S Dec 7 '11 at 6:34.

Config/initializers/devise. Rb: config. Authentication_keys = :username, :attr1 That should be it :) You can read more on the wiki.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions