开发者

why am I getting a NameError for authlogic method after upgrade to Rails 3

开发者 https://www.devze.com 2023-04-08 15:36 出处:网络
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\'

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

精彩评论

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

关注公众号