开发者

why am I getting a NameError for authlogic method after upgrade to Rails 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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜