Skip to content

Instantly share code, notes, and snippets.

@adamdilek
Created September 3, 2012 10:53
Show Gist options
  • Select an option

  • Save adamdilek/3608518 to your computer and use it in GitHub Desktop.

Select an option

Save adamdilek/3608518 to your computer and use it in GitHub Desktop.
bir
%tr
%td
%td
=@cart.total_product
ürün
%td.text-right
-total = 0
-@cart.line_items.collect{|line_item| total += line_item.market_product.price}
=number_to_currency(total)
%td
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment