Error: uninitialized constant Authlogic


#1

Hello,

I’m a Ruby / Rails beginner and tried to use the Authlogic plugin
which I have found here:
http://www.binarylogic.com/2008/11/3/tutorial-authlogic-basic-setup

However I run into this error:

uninitialized constant Authlogic

Application Trace | Framework Trace | Full Trace

D:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/
dependencies.rb:279:in load_missing_constant' D:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/ dependencies.rb:468:inconst_missing’
D:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/
dependencies.rb:480:in const_missing' app/models/user_session.rb:1 app/controllers/application.rb:12:incurrent_user_session’
app/controllers/application.rb:17:in current_user' app/controllers/application.rb:32:inrequire_no_user’

Perhaps you can point me somewhere to fix that. As I said, it’s all
new…

Lucas.


#2

Sounds like you are using the Gem and not the plugin. You might have
forgot this:

config/environment.rb

config.gem “authlogic”

On Jan 23, 3:49 pm, “removed_email_address@domain.invalid”