# Restful\_authentication installation setup problem

**URL:** <https://www.ruby-forum.com/t/restful-authentication-installation-setup-problem/157064>\
**Category:** Rails\
**Created:** [January 7, 2009, 12:54am UTC](https://www.ruby-forum.com/t/restful-authentication-installation-setup-problem/157064 "2009-01-07T00:54:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ihihih](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/bcef8e/32.png) [@ihihih](https://www.ruby-forum.com/u/ihihih)\
**Post date:** [January 7, 2009, 12:54am UTC](https://www.ruby-forum.com/t/restful-authentication-installation-setup-problem/157064/1 "2009-01-07T00:54:40Z")

</div>

I’m new to rails and trying to get restful\_authentication working, but  
I am getting errors when I try to create a user or login. I followed  
the instructions at the github repository and everything generated  
fine and [http://localhost:3000/login](http://localhost:3000/login) loads correctly, but when I click  
the log in button I get the error:

NameError in SessionsController#create

uninitialized constant User::Authentication

RAILS\_ROOT: /home/irvin/code/rails/todo  
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active\_support/  
dependencies.rb:102:in `const_missing' app/models/user.rb:4 lib/authenticated_system.rb:138:in `logout\_keeping\_session!’  
app/controllers/sessions\_controller.rb:10:in `create’

Also when I go to [http://localhost:3000/signup](http://localhost:3000/signup) I get the following:

NameError in UsersController#new  
uninitialized constant User::Authentication

RAILS\_ROOT: /home/irvin/code/rails/todo  
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active\_support/  
dependencies.rb:102:in `const_missing' app/models/user.rb:4 app/controllers/users_controller.rb:5:in `new’

I am using the following environment:  
Ruby version 1.8.7 (i486-linux)  
RubyGems version 1.3.1  
Rails version 2.2.2  
Active Record version 2.2.2  
Action Pack version 2.2.2  
Active Resource version 2.2.2  
Action Mailer version 2.2.2  
Active Support version 2.2.2  
Application root /home/irvin/code/rails/todo  
Environment development  
Database adapter sqlite3  
Database schema version 20090106210012

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![ihihih](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/bcef8e/32.png) [@ihihih](https://www.ruby-forum.com/u/ihihih)\
**Post date:** [January 7, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/restful-authentication-installation-setup-problem/157064/2 "2009-01-07T15:23:32Z")

</div>

I have the restful\_authentication working now, but I did not change  
any code. I installed the app for the restful\_authentication tutorial  
at [http://www.railsforum.com/viewtopic.php?id=14216](http://www.railsforum.com/viewtopic.php?id=14216) and although I  
could not get that app working when I tried the other apps I had  
restful\_authentication installed in they were now working. I guess  
this means my default environment was not setup correctly and when I  
installed the tutorial app it installed whatever I needed to get  
things working (perhaps the ruby-openid gem). Does anyone know if the  
ruby-openid gem is required to run basic restful\_authentication; I did  
not see it as a prerequisite in the documentation?
