referencing current card and parts in inclusions+error message

[Full Trace and Session Dump open]


NoMethodError in Card#show

Showing card/_view.rhtml where line #24 raised:

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.+

Extracted source (around line #24):

21: 	<%= slot.header %>  
22: <% end %>
23:
24: <%= slot.wrap_content( slot.render(:expanded_view_content) ) %>
25:
26: <%= slot.notice %>
27: <% if card.ok?(:comment) %>

Trace of template inclusion: /card/show.rhtml

RAILS_ROOT: /opt/johnabbe/current/config/..

[Application Trace][http://johnabbe.wagn.org/wagn/foo#] | [Framework Trace][http://johnabbe.wagn.org/wagn/foo#] | [Full Trace][http://johnabbe.wagn.org/wagn/foo#]
/opt/johnabbe/trunk/app/helpers/slot.rb:227:in `expand_transclusions'
/opt/johnabbe/trunk/app/helpers/slot.rb:208:in `expand_transclusions'
/opt/johnabbe/trunk/app/helpers/slot.rb:149:in `render'
/opt/johnabbe/trunk/app/views/card/_view.rhtml:24:in `_run_rhtml_47opt47johnabbe47trunk47app47views47card47_view46rhtml'
/opt/johnabbe/trunk/app/helpers/slot.rb:251:in `render_partial'
/opt/johnabbe/trunk/app/helpers/slot.rb:125:in `render'
/opt/johnabbe/trunk/app/views/card/show.rhtml:9:in `_run_rhtml_47opt47johnabbe47trunk47app47views47card47show46rhtml'
/opt/johnabbe/trunk/app/controllers/card_controller.rb:161:in `show'
/opt/johnabbe/trunk/app/controllers/card_controller.rb:160:in `show'
/usr/bin/mongrel_rails:19
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:325:in `compile_and_render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:301:in `render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:260:in `render_file'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:275:in `render'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/partials.rb:59:in `render_partial'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/benchmarking.rb:26:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/benchmarking.rb:26:in `benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/partials.rb:58:in `render_partial'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:287:in `render'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:325:in `compile_and_render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:301:in `render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:260:in `render_file'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:812:in `render_file'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:744:in `render_with_no_layout'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:869:in `render_without_layout'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:804:in `render_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:754:in `render_with_no_layout'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.3/lib/active_support/deprecation.rb:44:in `silence'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:753:in `render_with_no_layout'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/layout.rb:244:in `render_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/benchmarking.rb:50:in `render'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/benchmarking.rb:50:in `render'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/mime_responds.rb:135:in `custom'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/mime_responds.rb:167:in `respond'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/mime_responds.rb:161:in `respond'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/mime_responds.rb:105:in `respond_to'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:1101:in `perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/filters.rb:696:in `call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/filters.rb:688:in `perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/rescue.rb:83:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:435:in `process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/filters.rb:684:in `process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/session_management.rb:114:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:334:in `process'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.4/lib/dispatcher.rb:41:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:76:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:74:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:159:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:158:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:282:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:281:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:128:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/command.rb:212:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:281
/opt/johnabbe/trunk/app/helpers/slot.rb:227:in `expand_transclusions'
/opt/johnabbe/trunk/app/helpers/slot.rb:208:in `expand_transclusions'
/opt/johnabbe/trunk/app/helpers/slot.rb:149:in `render'
/opt/johnabbe/trunk/app/views/card/_view.rhtml:24:in `_run_rhtml_47opt47johnabbe47trunk47app47views47card47_view46rhtml'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:325:in `compile_and_render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:301:in `render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:260:in `render_file'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:275:in `render'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/partials.rb:59:in `render_partial'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/benchmarking.rb:26:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/benchmarking.rb:26:in `benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/partials.rb:58:in `render_partial'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:287:in `render'
/opt/johnabbe/trunk/app/helpers/slot.rb:251:in `render_partial'
/opt/johnabbe/trunk/app/helpers/slot.rb:125:in `render'
/opt/johnabbe/trunk/app/views/card/show.rhtml:9:in `_run_rhtml_47opt47johnabbe47trunk47app47views47card47show46rhtml'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:325:in `compile_and_render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:301:in `render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_view/base.rb:260:in `render_file'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:812:in `render_file'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:744:in `render_with_no_layout'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:869:in `render_without_layout'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:804:in `render_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:754:in `render_with_no_layout'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.3/lib/active_support/deprecation.rb:44:in `silence'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:753:in `render_with_no_layout'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/layout.rb:244:in `render_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/benchmarking.rb:50:in `render'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/benchmarking.rb:50:in `render'
/opt/johnabbe/trunk/app/controllers/card_controller.rb:161:in `show'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/mime_responds.rb:135:in `custom'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/mime_responds.rb:167:in `respond'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/mime_responds.rb:161:in `respond'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/mime_responds.rb:105:in `respond_to'
/opt/johnabbe/trunk/app/controllers/card_controller.rb:160:in `show'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:1101:in `perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/filters.rb:696:in `call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/filters.rb:688:in `perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/rescue.rb:83:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:435:in `process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/filters.rb:684:in `process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/session_management.rb:114:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.4/lib/action_controller/base.rb:334:in `process'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.4/lib/dispatcher.rb:41:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:76:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:74:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:159:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:158:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:282:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:281:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:128:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/command.rb:212:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:281
/usr/bin/mongrel_rails:19

Request

Parameters: {"id"=>"foo"}

[Show session dump][http://johnabbe.wagn.org/wagn/foo#]

--- 
:return_stack:
- 226
- 272
-
- 214
:user: 5
flash: !map:ActionController::Flash::FlashHash {}

Response

Headers: {"cookie"=>[], "Content-Type"=>"text/html", "Cache-Control"=>"no-cache"}