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 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?

On Jan 6, 3:57 pm, ih <[email protected]> wrote:
> I'm new to rails and trying to getrestful_authenticationworking, 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 andhttp://localhost:3000/loginloads 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 tohttp://localhost:3000/signupI 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!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to