On 11/15/10, Romain Biard <romain.bi...@gmail.com> wrote: > Hi everybody, > > I've installed Authlogic on Rails 3 following the Railscast (http:// > railscasts.com/episodes/160-authlogic), and the resources I was able > to find on the web, but I'm facing a problem. > > Once I've generated the user_sessions controller and mapped the login > and logout routes, I get an error if I try to load the login page : > uninitialized constant UserSessionsController::UserSession > app/controllers/user_sessions_controller.rb:11:in `new' > > The user_sessions model is really simple : > class UserSession < Authlogic::Session::Base > end > > But it looks like this class declaration is not considered by Rails... > > Does anyone have an idea ? > > Thx by advance for your help. > Romain
Hi Romain, Have a look at this link http://www.dixis.com/?p=352 on how to setup authlogic with rails 3. I have had a similar problem, and after following that tutorial, I managed to resolve my problem. I do get a few deprecation warnings, but overall it has been working ok. Hope that helps. Regards, Fidel. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.