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


On Jul 2, 1:19 pm, Saurabh Agarwal <[email protected]> wrote:
> 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
>     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/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
> `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
>
> 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 ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
Insoshi developer site: http://dogfood.insoshi.com/
Insoshi documentation: http://docs.insoshi.com/

You received this message because you are subscribed to the Google
Groups "Insoshi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/insoshi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to