Hello, I can''t start RoR if I put config.active_record.observers = :users_observer into my environment.rb file. Mongrel gives me this error: ** Daemonized, any open files are closed. Look at tmp/pids/mongrel. 80.pid and log/mongrel.80.log for info. ** Starting Mongrel listening at 208.79.204.140:80 ** Initiating groups for "ilikeyou":"ilikeyou". ** Changing group to "ilikeyou". ** Changing user to "ilikeyou". ** Starting Rails with development environment... /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ active_support/dependencies.rb:278:in `load_missing_constant'': uninitialize$ from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ active_support/dependencies.rb:467:in `const_missing'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ active_support/dependencies.rb:479:in `const_missing'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ active_support/inflector.rb:283:in `constantize'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ active_support/core_ext/string/inflections.rb:143:in `constant$ from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ active_record/observer.rb:38:in `instantiate_observers'' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ active_record/observer.rb:36:in `each'' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ active_record/observer.rb:36:in `instantiate_observers'' from /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ action_controller/dispatcher.rb:26:in `define_dispatcher_callback$ ... 25 levels... from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../ lib/mongrel/command.rb:212:in `run'' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ mongrel_rails:281 from /usr/local/bin/mongrel_rails:19:in `load'' Any ideas? I got the latest version of restful_authentication from github. Best regards. Asbjørn Morell. --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
change the :users_observer to :user_observer. it should work. -pandian On Thu, Jun 26, 2008 at 5:55 PM, atmorell <atmorell@gmail.com> wrote:> > Hello, > > I can't start RoR if I put config.active_record.observers > = :users_observer into my environment.rb file. Mongrel gives me this > error: > > ** Daemonized, any open files are closed. Look at tmp/pids/mongrel. > 80.pid and log/mongrel.80.log for info. > ** Starting Mongrel listening at 208.79.204.140:80 > ** Initiating groups for "ilikeyou":"ilikeyou". > ** Changing group to "ilikeyou". > ** Changing user to "ilikeyou". > ** Starting Rails with development environment... > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/dependencies.rb:278:in `load_missing_constant': > uninitialize$ > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/dependencies.rb:467:in `const_missing' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/dependencies.rb:479:in `const_missing' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/inflector.rb:283:in `constantize' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/core_ext/string/inflections.rb:143:in `constant$ > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ > active_record/observer.rb:38:in `instantiate_observers' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ > active_record/observer.rb:36:in `each' > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ > active_record/observer.rb:36:in `instantiate_observers' > from /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/dispatcher.rb:26:in `define_dispatcher_callback$ > ... 25 levels... > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../ > lib/mongrel/command.rb:212:in `run' > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ > mongrel_rails:281 > from /usr/local/bin/mongrel_rails:19:in `load' > > Any ideas? I got the latest version of restful_authentication from > github. > > Best regards. > Asbjørn Morell. > > >--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
thanks. that did the trick. On 26 Jun., 14:36, "Alagesa Pandian" <alg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> change the :users_observer to :user_observer. it should work. > > -pandian > > > > On Thu, Jun 26, 2008 at 5:55 PM, atmorell <atmor...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hello, > > > I can''t start RoR if I put config.active_record.observers > > = :users_observer into my environment.rb file. Mongrel gives me this > > error: > > > ** Daemonized, any open files are closed. Look at tmp/pids/mongrel. > > 80.pid and log/mongrel.80.log for info. > > ** Starting Mongrel listening at 208.79.204.140:80 > > ** Initiating groups for "ilikeyou":"ilikeyou". > > ** Changing group to "ilikeyou". > > ** Changing user to "ilikeyou". > > ** Starting Rails with development environment... > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > > active_support/dependencies.rb:278:in `load_missing_constant'': > > uninitialize$ > > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > > active_support/dependencies.rb:467:in `const_missing'' > > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > > active_support/dependencies.rb:479:in `const_missing'' > > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > > active_support/inflector.rb:283:in `constantize'' > > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > > active_support/core_ext/string/inflections.rb:143:in `constant$ > > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ > > active_record/observer.rb:38:in `instantiate_observers'' > > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ > > active_record/observer.rb:36:in `each'' > > from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ > > active_record/observer.rb:36:in `instantiate_observers'' > > from /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > > action_controller/dispatcher.rb:26:in `define_dispatcher_callback$ > > ... 25 levels... > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../ > > lib/mongrel/command.rb:212:in `run'' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ > > mongrel_rails:281 > > from /usr/local/bin/mongrel_rails:19:in `load'' > > > Any ideas? I got the latest version of restful_authentication from > > github. > > > Best regards. > > Asbjørn Morell.- Skjul tekst i anførselstegn - > > - Vis tekst i anførselstegn ---~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---