开发者

Rails 3.1 Authlogic NameError

开发者 https://www.devze.com 2023-03-30 06:37 出处:网络
I\'m currently trying to get authlogic working with my Rails 3.1 installation.In my Gemfile I have: gem \'authlogic\'

I'm currently trying to get authlogic working with my Rails 3.1 installation. In my Gemfile I have: gem 'authlogic'

running bundle install works perfectly, but in my app/models/user_session.rb 开发者_C百科file (shown below), I get this error:

uninitialized constant AuthLogic (NameError)

user_session.rb:

class UserSession < Authlogic::Session::Base
end

Am I simply forgetting to require something? I've searched all over and haven't been be able to come up with anything. I'd be happy to provide more information if needed.

Any help is greatly appreciated, thank you!


Somewhere you've referenced the constant AuthLogic, when you should have referenced Authlogic. Lower-case L.

0

精彩评论

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