Im试图关注this tutorial。Rails authlogic - NoMethodError
其有关登记后添加电子邮件予以确认的事情是,当我提交表单我得到这个错误
NoMethodError在UsersController#创建
未定义的方法 `deliver_verification_instructions!” 为#
我看了一下代码,确实没有这样的对我的用户模型...林在铁轨很新的方法......是教程错了?
Im试图关注this tutorial。Rails authlogic - NoMethodError
其有关登记后添加电子邮件予以确认的事情是,当我提交表单我得到这个错误
NoMethodError在UsersController#创建
未定义的方法 `deliver_verification_instructions!” 为#
我看了一下代码,确实没有这样的对我的用户模型...林在铁轨很新的方法......是教程错了?
是的,教程已经在User
模型中错过了该方法。它应该是这样的,而不是deliver_password_reset_instructions
:
def deliver_verification_instructions!
reset_perishable_token!
Notifier.deliver_verification_instructions(self)
end
我没有检查该教程,如果剩下的就是好的,但这是错误的肯定
是的 - NachoF你可能想继续寻找帐户激活教程。 – 2009-11-27 20:49:30
我没有看到你链接的页面方法。我确实看到了deliver_verification_instructions !.你能修改你的问题来包含代码吗? – 2009-11-27 20:25:11
在哪里你看到的方法定义?..我只是看到它被称为,但没有定义....其应该是在用户模型... – ignaciofuentes 2009-11-27 20:28:10