Paul Adams
2007-Oct-11 11:50 UTC
restful_authentication "uninitialized constant UserObserver" during generate authenticated
Hi, I''ve installed restful_authentication, added the line: config.active_record.observers = :user_observer and run: script/generate authenticated user session --include-activation but I get the following error: /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ active_support/dependencies.rb:266:in `load_missing_constant'': uninitialized constant UserObserver (NameError) Am I missing something? My config is: Ruby 1.8.6 Rails 1.2.4 Regards Paul --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Neil Wilson
2007-Oct-13 20:27 UTC
Re: restful_authentication "uninitialized constant UserObserver" during generate authenticated
Is there a user_observer.rb file in the model directory containing a UserObserver class? The generator usually creates one. On Oct 11, 12:50 pm, Paul Adams <paul.ad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''ve installed restful_authentication, added the line: > config.active_record.observers = :user_observer > > and run: > script/generate authenticated user session --include-activation > > but I get the following error: > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:266:in `load_missing_constant'': > uninitialized constant UserObserver (NameError) > > Am I missing something? > My config is: > Ruby 1.8.6 > Rails 1.2.4 > > Regards > Paul--~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
ghoti
2007-Oct-20 10:15 UTC
Re: restful_authentication "uninitialized constant UserObserver" during generate authenticated
I had this problem: I think its because you''ve got acts_as_authenticated and restful_authentication installed. Remove acts_as_authenticated and rerun the generator. At least that''s what worked for me. Francis Neil Wilson wrote:> Is there a user_observer.rb file in the model directory containing a > UserObserver class? The generator usually creates one. > > On Oct 11, 12:50 pm, Paul Adams <paul.ad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > > > > I''ve installed restful_authentication, added the line: > > config.active_record.observers = :user_observer > > > > and run: > > script/generate authenticated user session --include-activation > > > > but I get the following error: > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > > active_support/dependencies.rb:266:in `load_missing_constant'': > > uninitialized constant UserObserver (NameError) > > > > Am I missing something? > > My config is: > > Ruby 1.8.6 > > Rails 1.2.4 > > > > Regards > > Paul--~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---