Skip to content

Instantly share code, notes, and snippets.

@jameshilliard
Created December 14, 2013 13:53
Show Gist options
  • Select an option

  • Save jameshilliard/7959356 to your computer and use it in GitHub Desktop.

Select an option

Save jameshilliard/7959356 to your computer and use it in GitHub Desktop.
undefined method `display_total' for nil:NilClass
Extracted source (around line #13):
10
11
12
13
14
15
16
<% if store_menu? %><div id="cart_wrapper">
<div id="cart_wrapper_table">
<div id="cart_wrapper_cell">
<%= link_to 'MY CART', spree.cart_path, :class => "btn" %><span id="total_cart_amount"><%= link_to current_order.display_total, spree.cart_path %></span>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment