Skip to content

Instantly share code, notes, and snippets.

@patelc75
Created February 5, 2010 06:07
Show Gist options
  • Save patelc75/295559 to your computer and use it in GitHub Desktop.
Save patelc75/295559 to your computer and use it in GitHub Desktop.
sdev ActiveMerchant (production mode) error msg
ActionView::TemplateError (undefined method `success?' for nil:NilClass) on line #18 of orders/failure.html.erb:
15:
16: <hr />
17:
18: <div class="box <%= @subscription.success? ? 'back-green' : 'back-orange' %>">
19: <h3>Subscription charges (begins after 3 months from the date of purchase)</h3>
20: <p>
21: Message: <%= @subscription.message %>
app/views/orders/failure.html.erb:18:in `_run_erb_47app47views47orders47failure46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:338:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:338:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:35:in `render'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment