why am I getting a NameError for authlogic method after upgrade to Rails 3
-
27-01-2021 - |
Question
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.
Solution
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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow