Problem running insoshi for the first time

4 views
Skip to first unread message

saurabh

unread,
Jul 2, 2009, 8:41:09 AM7/2/09
to Insoshi
Hi All,

I am new to ROR and INsoshi I tried to install it on a windows machine
but on running it I am gettin the following error:

No matter which method I access (signup,login) i get the same error, I
guess something wrong with session plugin

NoMethodError in Home#index

Showing app/views/home/index.html.erb where line #20 raised:

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.app_name

Extracted source (around line #20):

17: <%= render :partial => 'shared/contacts_preview',
18: :locals => { :person => current_person } %>
19: <%- else -%>
20: <%- unless global_prefs.app_name.blank? -%>
21: <h2>About <%= global_prefs.app_name %></h2>
22:
23: <p>



Please help

Thanks
Saurabh


NoMethodError in People#new

Showing app/views/people/new.html.erb where line #2 raised:

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.app_name

Extracted source (around line #2):

1: <%- column_div :type => :primary do -%>
2: <%- if global_prefs.app_name.blank? -%>
3: <h2>Sign up</h2>
4: <%- else -%>
5: <h2>Sign up for <%= global_prefs.app_name %></h2>

RAILS_ROOT: C:/Documents and Settings/sauragar/My Documents/Aptana
Studio/insoshi
Application Trace | Framework Trace | Full Trace

app/views/people/new.html.erb:2
app/helpers/application_helper.rb:119:in `column_div'
app/views/people/new.html.erb:1
app/controllers/people_controller.rb:45:in `new'

vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:
36:in `call'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:
36:in `capture'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:
129:in `with_output_buffer'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:
36:in `capture'
vendor/rails/actionpack/lib/action_view/renderable.rb:39:in `send'
vendor/rails/actionpack/lib/action_view/renderable.rb:39:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:73:in
`render_template'
vendor/rails/actionpack/lib/action_view/base.rb:256:in `render'
vendor/rails/actionpack/lib/action_view/base.rb:367:in
`_render_with_layout'
vendor/rails/actionpack/lib/action_view/base.rb:254:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1174:in
`render_for_file'
vendor/rails/actionpack/lib/action_controller/base.rb:905:in
`render_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in
`render'
vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:
8:in `realtime'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in
`render'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:135:in
`send'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:135:in
`custom'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:164:in
`call'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:164:in
`respond'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:158:in
`each'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:158:in
`respond'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:107:in
`respond_to'
vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:1253:in
`perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:617:in
`call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
C:/InstantRails/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:136:in
`perform_action_without_caching'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:
13:in `perform_action'
vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/query_cache.rb:34:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in
`cache'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:
12:in `perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:524:in
`process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:606:in
`process_without_session_management_support'
vendor/rails/actionpack/lib/action_controller/session_management.rb:
134:in `process'
vendor/rails/actionpack/lib/action_controller/base.rb:392:in `process'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:183:in
`handle_request'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:110:in
`dispatch_unlocked'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:123:in
`dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in
`synchronize'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in
`dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:132:in
`dispatch_cgi'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:39:in
`dispatch'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/rails.rb:76:in `process'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/rails.rb:74:in `synchronize'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/rails.rb:74:in `process'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:159:in `process_client'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:158:in `each'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:158:in `process_client'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:285:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:285:in `initialize'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:285:in `new'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:285:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:268:in `initialize'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:268:in `new'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:268:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/configurator.rb:282:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/configurator.rb:281:in `each'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/configurator.rb:281:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/bin/mongrel_rails:128:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/command.rb:212:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/bin/mongrel_rails:281
vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in
`load_without_new_constant_marking'
vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in
`load'
vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
`new_constants_in'
vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in
`load'
vendor/rails/railties/lib/commands/servers/mongrel.rb:64
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in
`require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
`new_constants_in'
vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in
`require'
vendor/rails/railties/lib/commands/server.rb:49
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
script/server:3

app/views/people/new.html.erb:2
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:
36:in `call'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:
36:in `capture'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:
129:in `with_output_buffer'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:
36:in `capture'
app/helpers/application_helper.rb:119:in `column_div'
app/views/people/new.html.erb:1
vendor/rails/actionpack/lib/action_view/renderable.rb:39:in `send'
vendor/rails/actionpack/lib/action_view/renderable.rb:39:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:73:in
`render_template'
vendor/rails/actionpack/lib/action_view/base.rb:256:in `render'
vendor/rails/actionpack/lib/action_view/base.rb:367:in
`_render_with_layout'
vendor/rails/actionpack/lib/action_view/base.rb:254:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1174:in
`render_for_file'
vendor/rails/actionpack/lib/action_controller/base.rb:905:in
`render_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in
`render'
vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:
8:in `realtime'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in
`render'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:135:in
`send'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:135:in
`custom'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:164:in
`call'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:164:in
`respond'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:158:in
`each'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:158:in
`respond'
vendor/rails/actionpack/lib/action_controller/mime_responds.rb:107:in
`respond_to'
app/controllers/people_controller.rb:45:in `new'
vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:1253:in
`perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:617:in
`call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
C:/InstantRails/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:136:in
`perform_action_without_caching'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:
13:in `perform_action'
vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/query_cache.rb:34:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in
`cache'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:
12:in `perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:524:in
`process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:606:in
`process_without_session_management_support'
vendor/rails/actionpack/lib/action_controller/session_management.rb:
134:in `process'
vendor/rails/actionpack/lib/action_controller/base.rb:392:in `process'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:183:in
`handle_request'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:110:in
`dispatch_unlocked'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:123:in
`dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in
`synchronize'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in
`dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:132:in
`dispatch_cgi'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:39:in
`dispatch'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/rails.rb:76:in `process'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/rails.rb:74:in `synchronize'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/rails.rb:74:in `process'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:159:in `process_client'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:158:in `each'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:158:in `process_client'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:285:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:285:in `initialize'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:285:in `new'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:285:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:268:in `initialize'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:268:in `new'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel.rb:268:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/configurator.rb:282:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/configurator.rb:281:in `each'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/configurator.rb:281:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/bin/mongrel_rails:128:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/lib/mongrel/command.rb:212:in `run'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/bin/mongrel_rails:281
vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in
`load_without_new_constant_marking'
vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in
`load'
vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
`new_constants_in'
vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in
`load'
vendor/rails/railties/lib/commands/servers/mongrel.rb:64
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in
`require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
`new_constants_in'
vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in
`require'
vendor/rails/railties/lib/commands/server.rb:49
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
script/server:3


arumugam settu

unread,
Jul 2, 2009, 11:43:03 AM7/2/09
to ins...@googlegroups.com
Hi Saurabh,

you would have forgot to load the sample data!

Settu

Saurabh Agarwal

unread,
Jul 2, 2009, 2:19:02 PM7/2/09
to ins...@googlegroups.com
Hi Settu,

Thanks for the quick reply but I am still seeing the error, here are
the logs from my console ,Please help.

/insoshi/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb
(internal_server_error)


Processing HomeController#index (for 127.0.0.1 at 2009-07-02 23:47:18) [GET]
[4;35;1mSQL (0.0ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m
[0m
[4;36;1mPageView Columns (0.0ms) [0m [0;1mSHOW FIELDS FROM
`page_views` [0m
[4;35;1mSQL (0.0ms) [0m [0mBEGIN [0m
[4;36;1mPageView Create (0.0ms) [0m [0;1mINSERT INTO
`page_views` (`updated_at`, `referer`, `user_agent`, `request_url`,
`person_id`, `ip_address`, `created_at`) VALUES('2009-07-02 23:47:21',
NULL, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1)
Gecko/20090624 Firefox/3.5', '/', NULL, '127.0.0.1', '2009-07-02
23:47:21') [0m
[4;35;1mSQL (0.0ms) [0m [0mCOMMIT [0m
[4;36;1mTopic Load (0.0ms) [0m [0;1mSELECT * FROM `topics` ORDER
BY created_at DESC LIMIT 6 [0m
[4;35;1mPerson Load (0.0ms) [0m [0mSELECT * FROM `people` ORDER
BY people.created_at DESC LIMIT 8 [0m
[4;36;1mPerson Columns (0.0ms) [0m [0;1mSHOW FIELDS FROM `people` [0m
e` [0m
[4;35;1mPhoto Load (0.0ms) [0m [0mSELECT `photos`.* FROM
`photos` WHERE (`photos`.person_id = 1) ORDER BY created_at [0m
[4;36;1mActivity Load (0.0ms) [0m [0;1mSELECT `activities`.*
FROM `activities` INNER JOIN people p ON activities.person_id = p.id
WHERE (p.deactivated = 0 AND
(p.email_verified IS NULL OR
p.email_verified = 1)) ORDER BY activities.created_at DESC LIMIT 10 [0m
Rendering template within layouts/application
Rendering home/index
Rendered home/_feed (0.0ms)
Rendered searches/_box (0.0ms)
[4;35;1mPreference Load (0.0ms) [0m [0mSELECT * FROM
`preferences` LIMIT 1 [0m


ActionView::TemplateError (You have a nil object when you didn't expect it!
The error occurred while evaluating nil.app_name) on line #20 of
app/views/home/index.html.erb:
17: <%= render :partial => 'shared/contacts_preview',
18: :locals => { :person => current_person } %>
19: <%- else -%>
20: <%- unless global_prefs.app_name.blank? -%>
21: <h2>About <%= global_prefs.app_name %></h2>
22:
23: <p>

app/views/home/index.html.erb:20
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:36:in
`call'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:36:in
`capture'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:129:in
`with_output_buffer'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:36:in
`capture'
app/helpers/application_helper.rb:119:in `column_div'
app/views/home/index.html.erb:12
app/controllers/home_controller.rb:15:in `index'
vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:1253:in
`perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:617:in
`call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
C:/InstantRails/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:136:in
`perform_action_without_caching'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in
`perform_action'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:281
vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in
`load_without_new_constant_marking'
vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
`new_constants_in'
vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
vendor/rails/railties/lib/commands/servers/mongrel.rb:64
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in
`require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
`new_constants_in'
vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in
`require'
vendor/rails/railties/lib/commands/server.rb:49
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
script/server:3

Rendered C:/Documents and Settings/sauragar/My Documents/Aptana
Studio/insoshi/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace
(47.0ms)
Rendered C:/Documents and Settings/sauragar/My Documents/Aptana
Studio/insoshi/vendor/rails/actionpack/lib/action_controller/templates/rescues/_request_and_response
(0.0ms)
Rendering C:/Documents and Settings/sauragar/My Documents/Aptana
Studio/insoshi/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb
(internal_server_error)


Thanks
Saurabh
--

"Successful people make more mistakes because they do more "
Thanks
Saurabh Agarwal

HeresTomWithTheWeather

unread,
Jul 2, 2009, 7:59:49 PM7/2/09
to Insoshi
did you run script/install? it looks like a Preference object wasn't
created.

try:
script/console
>> p = Preference.find(:first)

if it returns nothing

>> Preference.create!

cheers,
tom
> Rendered C:/Documents and Settings/sauragar/My ...
>
> read more »

Saurabh Agarwal

unread,
Jul 2, 2009, 10:25:08 PM7/2/09
to ins...@googlegroups.com
Thanks a lot tom.

yes the problem was that preferrences were not created.


Appreciate your quick help.

Thanks
Saurabh
Reply all
Reply to author
Forward
0 new messages