Skip to content

Instantly share code, notes, and snippets.

@danahern
Created January 14, 2009 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danahern/47094 to your computer and use it in GitHub Desktop.
Save danahern/47094 to your computer and use it in GitHub Desktop.
ActionView::TemplateError occurred in credit_cards#confirmation_page:
"Expected /usr/motors/app/models/credit_card.rb to define CreditCard"
On line #62 of app/views/notifier/purchase_conf_en.rhtml
59: <td align='left' colspan='2'>
60: <hr/>
61: </td>
62: </tr><% unless @purchase_log.credit_card.blank? %>
63: <tr>
64: <td align='left' valign='top'>
65: <%=@purchase_log.card_full_name %>
/usr/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:249:in `load_missing_constant'
/usr/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:452:in `const_missing_not_from_s3_library'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/lib/aws/s3/extensions.rb:174:in `const_missing'
/usr/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:464:in `const_missing'
/usr/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:260:in `load_missing_constant'
/usr/motors/vendor/rails/activesupport/lib/active_support/dependencies.rb:468:in `const_missing'
/usr/motors/vendor/rails/activerecord/lib/active_record/base.rb:1363:in `compute_type'
/usr/motors/vendor/rails/activerecord/lib/active_record/reflection.rb:125:in `send'
/usr/motors/vendor/rails/activerecord/lib/active_record/reflection.rb:125:in `klass'
/usr/motors/vendor/rails/activerecord/lib/active_record/associations/belongs_to_association.rb:44:in `find_target'
/usr/motors/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:131:in `load_target'
/usr/motors/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:55:in `reload'
/usr/motors/vendor/rails/activerecord/lib/active_record/associations.rb:912:in `credit_card'
/usr/motors/app/views/notifier/purchase_conf_en.rhtml:62:in `_run_rhtml_47app47views47notifier47purchase_conf_en46rhtml'
/usr/motors/vendor/rails/actionpack/lib/action_view/base.rb:325:in `send'
/usr/motors/vendor/rails/actionpack/lib/action_view/base.rb:325:in `compile_and_render_template'
/usr/motors/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template'
/usr/motors/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'
(eval):3:in `render_message'
/usr/motors/vendor/rails/actionmailer/lib/action_mailer/base.rb:424:in `create!'
/usr/motors/vendor/rails/actionmailer/lib/action_mailer/base.rb:385:in `initialize'
/usr/motors/vendor/rails/actionmailer/lib/action_mailer/base.rb:333:in `new'
/usr/motors/vendor/rails/actionmailer/lib/action_mailer/base.rb:333:in `method_missing'
/usr/motors/app/controllers/credit_cards_controller.rb:198:in `confirmation_page'
- Show quoted text -
/usr/motors/vendor/rails/actionpack/lib/action_controller/base.rb:1101:in `send'
/usr/motors/vendor/rails/actionpack/lib/action_controller/base.rb:1101:in `perform_action_without_filters'
/usr/motors/vendor/rails/actionpack/lib/action_controller/filters.rb:696:in `call_filters'
/usr/motors/vendor/rails/actionpack/lib/action_controller/filters.rb:688:in `perform_action_without_benchmark'
/usr/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'
/usr/motors/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
/usr/motors/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in `perform_action'
/usr/motors/vendor/rails/actionpack/lib/action_controller/base.rb:435:in `send'
/usr/motors/vendor/rails/actionpack/lib/action_controller/base.rb:435:in `process_without_filters'
/usr/motors/vendor/rails/actionpack/lib/action_controller/filters.rb:684:in `process_without_session_management_support'
/usr/motors/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in `process'
/usr/motors/vendor/rails/actionpack/lib/action_controller/base.rb:334:in `process'
/usr/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
/usr/local/bin/mongrel_rails:19:in `load'
/usr/local/bin/mongrel_rails:19
++++++
Request
++++++
* URL : http://motors.upillar.com/credit_cards/confirmation_page/138520
* Server : 127.0.0.1
* IP address: 75.169.217.142
* Parameters: {"action"=>"confirmation_page", "id"=>"138520", "controller"=>"credit_cards"}
/\/\/\/\/\/\
Backtrace
/\/\/\/\/\/\
On line #62 of app/views/notifier/purchase_conf_en.rhtml
59: <td align='left' colspan='2'>
60: <hr/>
61: </td>
62: </tr><% unless @purchase_log.credit_card.blank? %>
63: <tr>
64: <td align='left' valign='top'>
65: <%=@purchase_log.card_full_name %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment