# Error: uninitialized constant Authlogic

**URL:** <https://www.ruby-forum.com/t/error-uninitialized-constant-authlogic/158534>\
**Category:** Rails\
**Created:** [January 24, 2009, 1:27pm UTC](https://www.ruby-forum.com/t/error-uninitialized-constant-authlogic/158534 "2009-01-24T13:27:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 24, 2009, 1:27pm UTC](https://www.ruby-forum.com/t/error-uninitialized-constant-authlogic/158534/1 "2009-01-24T13:27:07Z")

</div>

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](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:in `const\_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:in `current\_user\_session’  
app/controllers/application.rb:17:in `current_user' app/controllers/application.rb:32:in `require\_no\_user’

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

Lucas.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 19, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/error-uninitialized-constant-authlogic/158534/2 "2009-02-19T23:20:18Z")

</div>

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”
