# Help with tutorial --- Sproutcore + Rails

**URL:** <https://www.ruby-forum.com/t/help-with-tutorial-sproutcore-rails/155143>\
**Category:** Rails\
**Created:** [December 8, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/help-with-tutorial-sproutcore-rails/155143 "2008-12-08T17:32:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geneeyuss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e495f1/32.png) [@geneeyuss](https://www.ruby-forum.com/u/geneeyuss)\
**Post date:** [December 8, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/help-with-tutorial-sproutcore-rails/155143/1 "2008-12-08T17:32:10Z")

</div>

Hi,

I have been using rails to talk to sproutcore. I did exactly what the  
tutorial talks about. Also I downloaded the sproutcore-examples as  
instructed in the tutorial. Now when I run the local host :  
[http://localhost:4020/contacts](http://localhost:4020/contacts) I do not get records listed on the left  
pane, instead I get a message on the console as below:

REQUEST: get /sc/contacts/list  
GET [http://localhost:4020/sc/contacts/list?order=id](http://localhost:4020/sc/contacts/list?order=id)

I understand the get request is posted at  
[http://localhost:4020/sc/contacts/list?order=id](http://localhost:4020/sc/contacts/list?order=id)  
When I looked the above URL, below is the message I get. Could someone  
please help me to see where I could be going wrong ??? I have also  
posted this a few days ago.

NameError in ContactsController#list

uninitialized constant ContactsController::Contact

RAILS\_ROOT: /Users/Latha/LearningRuby/contacts  
Application Trace | Framework Trace | Full Trace

/Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active\_support/  
dependencies.rb:493:in `const_missing' app/controllers/contacts_controller.rb:3:in `list’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
base.rb:1166:in `send' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ base.rb:1166:in `perform\_action\_without\_filters’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
filters.rb:579:in `call_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ filters.rb:572:in `perform\_action\_without\_benchmark’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
benchmarking.rb:68:in `perform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ benchmarking.rb:68:in `perform\_action\_without\_rescue’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
rescue.rb:201:in `perform_action_without_caching' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ caching/sql_cache.rb:13:in `perform\_action’  
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.2/lib/active\_record/  
connection\_adapters/abstract/query\_cache.rb:33:in `cache' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.2/lib/active_record/ query_cache.rb:8:in `cache’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
caching/sql\_cache.rb:12:in `perform_action' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ base.rb:529:in `send’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
base.rb:529:in `process_without_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ filters.rb:568:in `process\_without\_session\_management\_support’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
session\_management.rb:130:in `process' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ base.rb:389:in `process’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in  
`process' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/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.1.2/lib/active\_support/  
dependencies.rb:503:in `load' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active_support/ dependencies.rb:503:in `load’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active\_support/  
dependencies.rb:355:in `new_constants_in' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active_support/ dependencies.rb:503:in `load’  
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/commands/servers/  
mongrel.rb:64  
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active\_support/  
dependencies.rb:510:in `require' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active_support/ dependencies.rb:355:in `new\_constants\_in’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active\_support/  
dependencies.rb:510:in `require’  
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/commands/server.rb:39

/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.1.2/lib/action_controller/ dispatcher.rb:149:in `handle\_request’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
dispatcher.rb:107:in `dispatch' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ dispatcher.rb:104:in `synchronize’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
dispatcher.rb:104:in `dispatch' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ dispatcher.rb:120:in `dispatch\_cgi’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
dispatcher.rb:35:in `dispatch' /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/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

/Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active\_support/  
dependencies.rb:493:in `const_missing' app/controllers/contacts_controller.rb:3:in `list’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
base.rb:1166:in `send' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ base.rb:1166:in `perform\_action\_without\_filters’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
filters.rb:579:in `call_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ filters.rb:572:in `perform\_action\_without\_benchmark’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.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.1.2/lib/action\_controller/  
benchmarking.rb:68:in `perform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ rescue.rb:201:in `perform\_action\_without\_caching’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
caching/sql\_cache.rb:13:in `perform_action' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.2/lib/active_record/ connection_adapters/abstract/query_cache.rb:33:in `cache’  
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.2/lib/active\_record/  
query\_cache.rb:8:in `cache' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ caching/sql_cache.rb:12:in `perform\_action’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
base.rb:529:in `send' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ base.rb:529:in `process\_without\_filters’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
filters.rb:568:in `process_without_session_management_support' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ session_management.rb:130:in `process’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
base.rb:389:in `process' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ dispatcher.rb:149:in `handle\_request’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
dispatcher.rb:107:in `dispatch' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ dispatcher.rb:104:in `synchronize’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
dispatcher.rb:104:in `dispatch' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ dispatcher.rb:120:in `dispatch\_cgi’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action\_controller/  
dispatcher.rb:35:in `dispatch' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in  
`synchronize' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/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.1.2/lib/active_support/ dependencies.rb:503:in `load’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active\_support/  
dependencies.rb:503:in `load' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active_support/ dependencies.rb:355:in `new\_constants\_in’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active\_support/  
dependencies.rb:503:in `load' /Library/Ruby/Gems/1.8/gems/rails-2.1.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.1.2/lib/active_support/ dependencies.rb:510:in `require’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active\_support/  
dependencies.rb:355:in `new_constants_in' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.2/lib/active_support/ dependencies.rb:510:in `require’  
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/commands/server.rb:39  
/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

Request

Parameters:

{“order”=\>“id”}

Show session dump

* * *

flash: !map:ActionController::Flash::FlashHash {}

Response

Headers:

{“cookie”=\>[],  
“Cache-Control”=\>“no-cache”}

Thanks in advance for the help.

Latha
