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