Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authlogic: getting an undefined method `password' for #<User:

I can't seem to get my User model in Authlogic to understand the 'password' method even though I added "acts_as_authentic" to the model. This problem was also reported on the Authlogic lighthouse, but no one described how they fixed it:

http://binarylogic.lighthouseapp.com/projects/18752/tickets/128-undefined-method-password-on-rails-231#ticket-128-9

The user table exists with all the required fields, and the controllers and everything else is definitely following the tutorial to the letter.

Anyone know what could be wrong?

(Oh, I'm running Rails 2.3.3, Authlogic 2.1.1)

like image 808
btelles Avatar asked Apr 30 '26 05:04

btelles


1 Answers

I misspelled "crypted_password" as "crypted_passwond". Arg!

For all those other people out there, be sure you have all the required columns in your database.

like image 154
btelles Avatar answered May 02 '26 22:05

btelles