Created
November 21, 2008 20:44
-
-
Save danahern/27627 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NameError in Dealerships#existing_promotion | |
Showing app/views/dealerships/existing_promotion.rhtml where line #15 raised: | |
undefined local variable or method `dealership' for #<#<Class:0x416c340>:0x416c318> | |
Extracted source (around line #15): | |
12: <label for='dealers_<%=dealership.id%>' ><%= dealership.companyname %><%= check_box(:dealers, dealership.id, {:checked => true, 'onchange' => remote_function(:url => { :controller => "dealership", :action => "update_promotion_prices"}, :with => 'Form.serialize(this.form)')}) %></label> (<%= number_to_currency(dealership.listing_type.cost) %>)<br/> | |
13: <% end %> | |
14: <% else %> | |
15: <%= hidden_field(:dealers, dealership.id, :value => true) %> | |
16: <% end %> | |
17: <hr class="dashed_hr"> | |
18: <span class="plainbox"><h3 class="why_choose_headers">Choose a payment method:</h3> | |
RAILS_ROOT: script/../config/.. | |
Application Trace | Framework Trace | Full Trace | |
/Users/dan/Sites/motors/app/views/dealerships/existing_promotion.rhtml:15:in `_run_rhtml_47app47views47dealerships47existing_promotion46rhtml' | |
/Users/dan/Sites/motors/app/views/dealerships/existing_promotion.rhtml:9:in `_run_rhtml_47app47views47dealerships47existing_promotion46rhtml' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:151:in `fields_for' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:127:in `form_for' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_view/base.rb:325:in `send' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_view/base.rb:325:in `compile_and_render_template' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/base.rb:812:in `render_file' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/base.rb:717:in `render_with_no_layout' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/layout.rb:247:in `render_without_benchmark' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render' | |
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/base.rb:1102:in `perform_action_without_filters' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/filters.rb:696:in `call_filters' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/filters.rb:688:in `perform_action_without_benchmark' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' | |
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in `perform_action' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/base.rb:435:in `send' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/base.rb:435:in `process_without_filters' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/filters.rb:684:in `process_without_session_management_support' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in `process' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/base.rb:334:in `process' | |
/Users/dan/Sites/motors/vendor/rails/railties/lib/dispatcher.rb:41:in `dispatch' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load' | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load' | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load' | |
/Users/dan/Sites/motors/vendor/rails/railties/lib/commands/servers/mongrel.rb:60 | |
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require' | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require' | |
/Users/dan/Sites/motors/vendor/rails/railties/lib/commands/server.rb:39 | |
script/server:3:in `require' | |
script/server:3 | |
/Users/dan/Sites/motors/app/views/dealerships/existing_promotion.rhtml:15:in `_run_rhtml_47app47views47dealerships47existing_promotion46rhtml' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:151:in `fields_for' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:127:in `form_for' | |
/Users/dan/Sites/motors/app/views/dealerships/existing_promotion.rhtml:9:in `_run_rhtml_47app47views47dealerships47existing_promotion46rhtml' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_view/base.rb:325:in `send' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_view/base.rb:325:in `compile_and_render_template' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/base.rb:812:in `render_file' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/base.rb:717:in `render_with_no_layout' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/layout.rb:247:in `render_without_benchmark' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render' | |
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/base.rb:1102:in `perform_action_without_filters' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/filters.rb:696:in `call_filters' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/filters.rb:688:in `perform_action_without_benchmark' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' | |
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in `perform_action' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/base.rb:435:in `send' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/base.rb:435:in `process_without_filters' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/filters.rb:684:in `process_without_session_management_support' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in `process' | |
/Users/dan/Sites/motors/vendor/rails/actionpack/lib/action_controller/base.rb:334:in `process' | |
/Users/dan/Sites/motors/vendor/rails/railties/lib/dispatcher.rb:41:in `dispatch' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run' | |
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load' | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load' | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load' | |
/Users/dan/Sites/motors/vendor/rails/railties/lib/commands/servers/mongrel.rb:60 | |
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require' | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' | |
/Users/dan/Sites/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require' | |
/Users/dan/Sites/motors/vendor/rails/railties/lib/commands/server.rb:39 | |
script/server:3:in `require' | |
script/server:3 | |
Request | |
Parameters: {"id"=>"16"} | |
Show session dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment