"uninitialized Authlogic constant"

Just followed the Authlogic tutorial. When I try to run the application, I get "uninitialized constant Authlogic". After searching, I see that this is related to gems / plugins, but I can not find a solution.

Edit:

My UserSession Model:

class UserSession < Authlogic::Session::Base end 
+4
source share
1 answer

Is it in your environment.rb file? If so, have you rebooted the server?

If you use Rails 3, is it in the Gemfile and have you rebooted the server?

Most of all, have you installed a gem?

+8
source

Source: https://habr.com/ru/post/1302294/


All Articles