# RoR 2.1 and Restful\_authentication

**URL:** <https://www.ruby-forum.com/t/ror-2-1-and-restful-authentication/141501>\
**Category:** Rails\
**Created:** [June 26, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/ror-2-1-and-restful-authentication/141501 "2008-06-26T14:26:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![atmorell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/50afbb/32.png) [@atmorell](https://www.ruby-forum.com/u/atmorell)\
**Post date:** [June 26, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/ror-2-1-and-restful-authentication/141501/1 "2008-06-26T14:26:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![atmorell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/50afbb/32.png) [@atmorell](https://www.ruby-forum.com/u/atmorell)\
**Post date:** [June 26, 2008, 2:37pm UTC](https://www.ruby-forum.com/t/ror-2-1-and-restful-authentication/141501/2 "2008-06-26T14:37:40Z")

</div>

change the :users\_observer to :user\_observer. it should work.

-pandian

---

<div class="post-metadata">

**Author:** ![atmorell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/50afbb/32.png) [@atmorell](https://www.ruby-forum.com/u/atmorell)\
**Post date:** [June 26, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/ror-2-1-and-restful-authentication/141501/3 "2008-06-26T16:42:19Z")

</div>

thanks. that did the trick.
