Authlogic:为#<User获取一个未定义的方法`password':

bte*_*les 2 authentication passwords authorization ruby-on-rails authlogic

即使我在模型中添加了"acts_as_authentic",我也无法在Authlogic中获取用户模型来理解"密码"方法.在Authlogic灯塔上也报道了这个问题,但没有人描述他们如何修复它:

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

用户表存在所有必需的字段,控制器和其他所有内容肯定遵循教程中的字母.

谁知道什么可能是错的?

(哦,我正在运行Rails 2.3.3,Authlogic 2.1.1)

bte*_*les 6

我拼错了"crypted_pa​​ssword"作为"crypted_pa​​sswond".精氨酸!

对于那里的所有其他人,请确保您的数据库中包含所有必需的列.