为什么升级到 Rails 3 后我会收到 authlogic 方法的 NameError 错误
我正在升级到 Rails 3,最初使用的是 authlogic。
我现在收到一个 NameError:
NameError (undefined local variable or method `require_no_user'
'require_no_user" is a method for authlogic that is put into the UserSessions Controller. 但我收到一个错误,无法弄清楚为什么它被认为是未定义的。
我将 authlogic gem 更新为 3.0.3 ,但这还没有解决它......
是的,我会考虑转向设计,但我真的需要完成升级的基础知识,并希望我能做到......谢谢。
I am doing an upgrade to Rails 3 and had originally been using authlogic.
I now get a NameError:
NameError (undefined local variable or method `require_no_user'
'require_no_user" is a method for authlogic that is put into the UserSessions Controller. But I'm getting an error and can't figure out why it is considered undefined.
I updated the authlogic gem to 3.0.3, but that hasn't fixed it.....
Yes, I will look into moving to Devise, but I really need to just get the basics of the upgrade done and hope I can do so...thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也有同样的问题。不幸的是,教程中没有描述它。答案如下: https://github.com/binarylogic/authlogic_example/blob/9b22672cd64fb31b405c000e207b2cae281baa58/app/controllers/application_controller.rb
I had the same problem. Unfortunaltely its not described in the tutorial. Here is the answer: https://github.com/binarylogic/authlogic_example/blob/9b22672cd64fb31b405c000e207b2cae281baa58/app/controllers/application_controller.rb