I have this (undefined method include?' for nil:NilClass) when i tried to edit some pages. Also, I have (undefined method
include?’ ) when i tried to see the
pages! some content are displayed and else throw this error!
I can handle it when I touch tmp/restart.txt…
But I want to restart the app when this error came!! any solution???
This from the log
Processing Admin::PagesController#edit (for 213.xx.xx.178 at
2010-11-01 13:23:54) [GET]
Parameters: {“action”=>“edit”, “id”=>“15”, “controller”=>“admin/
pages”}
Rendering template within layouts/application
Rendering admin/pages/edit
ActionView::TemplateError (undefined method `include?’ for
nil:NilClass) on line #26 of /opt/ruby-enterprise/lib/ruby/gems/1.8/
gems/radiant-0.9.1/app/views/admin/pages/_fields.html.haml:
23: %a.popup{:href=>
‘#add_part_popup’, :title=>t(‘add_part’)}
24: = image(‘add_tab’, :alt=>t(‘add_part’), :title=>"")
25: #pages.pages
26: = render :partial => ‘admin/page_parts/
page_part’, :collection => @page.parts
27: = render_region :parts_bottom, :locals => {:f => fields}
28: - form.edit_layout_and_type do
29: .set
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/will_paginate-2.3.15/
lib/will_paginate/finder.rb:168:in method_missing' radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/ action_view_mods.rb:11:in
render’
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:
90:in non_haml' radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/ action_view_mods.rb:11:in
render’
radiant (0.9.1) app/views/admin/pages/_fields.html.haml:26
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:
343:in call' radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb: 343:in
capture_haml’
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:
545:in with_haml_buffer' radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb: 339:in
capture_haml’
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/
action_view_mods.rb:88:in capture' radiant (0.9.1) lib/radiant/admin_ui/region_partials.rb:13:in
method_missing’
radiant (0.9.1) app/views/admin/pages/_fields.html.haml:19
radiant (0.9.1) app/helpers/admin/regions_helper.rb:6:in call' radiant (0.9.1) app/helpers/admin/regions_helper.rb:6:in
render_region’
radiant (0.9.1) app/views/admin/pages/_fields.html.haml:6:in
_run_haml_47opt47ruby45enterprise47lib47ruby47gems47146847gems47radiant45046946147app47views47admin47pages47_fields46html46haml_locals_fields_object' radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/ action_view_mods.rb:11:in
render’
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:
90:in non_haml' radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/ action_view_mods.rb:11:in
render’
radiant (0.9.1) app/views/admin/pages/edit.html.haml:8
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/
action_view_mods.rb:204:in call' radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/ action_view_mods.rb:204 radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb: 567:in
call’
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:
567:in haml_bind_proc' radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/ action_view_mods.rb:210:in
form_for’
radiant (0.9.1) app/views/admin/pages/edit.html.haml:7
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:
343:in call' radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb: 343:in
capture_haml’
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:
545:in with_haml_buffer' radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb: 339:in
capture_haml’
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/
action_view_mods.rb:88:in capture' radiant (0.9.1) lib/radiant/admin_ui/region_partials.rb:13:in
method_missing’
radiant (0.9.1) app/views/admin/pages/edit.html.haml:6
radiant (0.9.1) app/helpers/admin/regions_helper.rb:6:in call' radiant (0.9.1) app/helpers/admin/regions_helper.rb:6:in
render_region’
radiant (0.9.1) app/views/admin/pages/edit.html.haml:3:in
_run_haml_47opt47ruby45enterprise47lib47ruby47gems47146847gems47radiant45046946147app47views47admin47pages47edit46html46haml' radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/ action_view_mods.rb:13:in
render’
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/
action_view_mods.rb:13:in render' radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/plugin/ rails.rb:20:in
process’
passenger (3.0.0) lib/phusion_passenger/rack/request_handler.rb:
96:in process_request' passenger (3.0.0) lib/phusion_passenger/ abstract_request_handler.rb:513:in
accept_and_process_next_request’
passenger (3.0.0) lib/phusion_passenger/
abstract_request_handler.rb:274:in main_loop' passenger (3.0.0) lib/phusion_passenger/classic_rails/ application_spawner.rb:321:in
start_request_handler’
passenger (3.0.0) lib/phusion_passenger/classic_rails/
application_spawner.rb:275:in send' passenger (3.0.0) lib/phusion_passenger/classic_rails/ application_spawner.rb:275:in
handle_spawn_application’
passenger (3.0.0) lib/phusion_passenger/utils.rb:479:in
safe_fork' passenger (3.0.0) lib/phusion_passenger/classic_rails/ application_spawner.rb:270:in
handle_spawn_application’
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in
__send__' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in
server_main_loop’
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:206:in
start_synchronously' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:180:in
start’
passenger (3.0.0) lib/phusion_passenger/classic_rails/
application_spawner.rb:149:in start' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:219:in
spawn_rails_application’
passenger (3.0.0) lib/phusion_passenger/
abstract_server_collection.rb:132:in lookup_or_add' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:214:in
spawn_rails_application’
passenger (3.0.0) lib/phusion_passenger/
abstract_server_collection.rb:82:in synchronize' passenger (3.0.0) lib/phusion_passenger/ abstract_server_collection.rb:79:in
synchronize’
passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:213:in
spawn_rails_application' passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:132:in
spawn_application’
passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:275:in
handle_spawn_application' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in
send’
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in
server_main_loop' passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:206:in
start_synchronously’
passenger (3.0.0) helper-scripts/passenger-spawn-server:99
Rendering /home/deploy/beta/xxx/public/500.html (500 Internal Server
Error)
– amr