Skip to content

Instantly share code, notes, and snippets.

@ElliotGage
Created August 28, 2012 19:47
Show Gist options
  • Save ElliotGage/3503379 to your computer and use it in GitHub Desktop.
Save ElliotGage/3503379 to your computer and use it in GitHub Desktop.
order detail error
I'm getting an error from the order_details partial. See below.
The order has processed just fine, the card is authorized fine... but the active merchant type? look-up returns nil on some cards, which is stored on the payment card type as nil which then bubbles up an error from the order_details partial.
Error:
ActionView::Template::Error (creditcards/icons/.png isn't precompiled):
26: <div class="payment-info">
27: <% unless order.creditcards.empty? %>
28: <span class="cc-type">
29: <%= image_tag "creditcards/icons/#{order.creditcards.first.cc_
type}.png" %>
30: <%= t(:ending_in)%> <%= order.creditcards.first.last_digits %>
31: </span>
32: <br />
Copy link

ghost commented Sep 12, 2012

Were you ever able to get past this? I'm just running into the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment