# Rails 2.2 on Mac OSX 10.5

**URL:** <https://www.ruby-forum.com/t/rails-2-2-on-mac-osx-10-5/157177>\
**Category:** Rails\
**Created:** [January 8, 2009, 6:01am UTC](https://www.ruby-forum.com/t/rails-2-2-on-mac-osx-10-5/157177 "2009-01-08T06:01:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adammontgomery](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Post date:** [January 8, 2009, 6:01am UTC](https://www.ruby-forum.com/t/rails-2-2-on-mac-osx-10-5/157177/1 "2009-01-08T06:01:18Z")

</div>

I need some help figuring out what is wrong with my 2.2 installation  
of rails on Mac OSX 10.5.

I performed the following commands prior to creating a sample app.

sudo gem update --system  
sudo gem update rails  
sudo gem update mongrel  
sudo gem update sqlite3

All these commands worked successfully without error. Then I created  
a sample app called depot and created a quick scaffold of test with a  
name & birthday fields.

Now when trying to access [http://localhost:3000/tests/](http://localhost:3000/tests/) I get the  
following dump. It does not make much sense to me. Kinda new at this  
stuff still. Any help will be greatly appreciated.

Last login: Wed Jan 7 21:37:19 on ttys000  
Macintosh:~ adam$ ruby -v  
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]  
Macintosh:~ adam$ rails -v  
Rails 2.2.2  
Macintosh:~ adam$ gem -v  
1.3.1  
Macintosh:~ adam$ script/server  
-bash: script/server: No such file or directory  
Macintosh:~ adam$ cd sites  
Macintosh:sites adam$ cd depot  
Macintosh:depot adam$ script/server  
=\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)  
=\> Rails 2.2.2 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server  
\*\* Starting Mongrel listening at 0.0.0.0:3000  
\*\* Starting Rails with development environment…  
\*\* Rails loaded.  
\*\* Loading any Rails specific GemPlugins  
\*\* Signals ready. TERM =\> stop. USR2 =\> restart. INT =\> stop (no  
restart).  
\*\* Rails signals registered. HUP =\> reload (without restart). It  
might not work well.  
\*\* Mongrel 1.1.5 available at 0.0.0.0:3000  
\*\* Use CTRL-C to stop.

Processing TestsController#index (for 127.0.0.1 at 2009-01-07  
22:53:27) [GET]

NoMethodError (undefined method `find' for Test:Module): /app/controllers/tests_controller.rb:5:in `index’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/  
base.rb:1253:in `send' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ base.rb:1253:in `perform\_action\_without\_filters’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/  
filters.rb:617:in `call_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ filters.rb:610:in `perform\_action\_without\_benchmark’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/  
benchmarking.rb:68:in `perform_action_without_rescue' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/benchmark.rb:293:in `measure’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/  
benchmarking.rb:68:in `perform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ rescue.rb:136:in `perform\_action\_without\_caching’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/  
caching/sql\_cache.rb:13:in `perform_action' /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/ connection_adapters/abstract/query_cache.rb:34:in `cache’  
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active\_record/  
query\_cache.rb:8:in `cache' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ caching/sql_cache.rb:12:in `perform\_action’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/  
base.rb:524:in `send' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ base.rb:524:in `process\_without\_filters’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/  
filters.rb:606:in `process_without_session_management_support' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ session_management.rb:134:in `process’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/  
base.rb:392:in `process' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ dispatcher.rb:183:in `handle\_request’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/  
dispatcher.rb:110:in `dispatch_unlocked' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ dispatcher.rb:123:in `dispatch’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/  
dispatcher.rb:122:in `synchronize' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ dispatcher.rb:122:in `dispatch’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action\_controller/  
dispatcher.rb:132:in `dispatch_cgi' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ dispatcher.rb:39:in `dispatch’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/…/lib/mongrel/  
rails.rb:76:in `process' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/ rails.rb:74:in `synchronize’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/…/lib/mongrel/  
rails.rb:74:in `process' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process\_client’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in  
`each' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process\_client’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in  
`run' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in  
`new' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in  
`initialize' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in  
`run' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/ configurator.rb:282:in `run’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/  
configurator.rb:281:in `each' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/ configurator.rb:281:in `run’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/mongrel\_rails:128:in  
`run' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb: 212:in `run’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/mongrel\_rails:281  
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active\_support/  
dependencies.rb:142:in `load_without_new_constant_marking' /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ dependencies.rb:142:in `load’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active\_support/  
dependencies.rb:521:in `new_constants_in' /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ dependencies.rb:142:in `load’  
/Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/commands/servers/  
mongrel.rb:64  
/Library/Ruby/Site/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active\_support/  
dependencies.rb:153:in `require' /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ dependencies.rb:521:in `new\_constants\_in’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active\_support/  
dependencies.rb:153:in `require' /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem\_original\_require’  
/Library/Ruby/Site/1.8/rubygems/custom\_require.rb:31:in `require’  
script/server:3

Rendered /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/  
action\_controller/templates/rescues/\_trace (112.4ms)  
Rendered /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/  
action\_controller/templates/rescues/\_request\_and\_response (1.0ms)  
Rendering /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/  
action\_controller/templates/rescues/layout.erb (internal\_server\_error)

---

<div class="post-metadata">

**Author:** ![adammontgomery](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Post date:** [January 8, 2009, 6:18am UTC](https://www.ruby-forum.com/t/rails-2-2-on-mac-osx-10-5/157177/2 "2009-01-08T06:18:51Z")

</div>

You’ve named a model after something that’s a reserved module in  
Rails. Call it something else.

* * *

Ryan B.  
Freelancer

> **[frozenplague.net](http://frozenplague.net)**
>
> This domain may be for sale!
