Skip to content

Instantly share code, notes, and snippets.

Created April 1, 2016 08:06
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 anonymous/b2e1f87a34ea255160cd1c2c390bcb2c to your computer and use it in GitHub Desktop.
Save anonymous/b2e1f87a34ea255160cd1c2c390bcb2c to your computer and use it in GitHub Desktop.
- brand.available_products.order('price_min_cents ASC').each_with_index do |product, index|
%a.card_price{:href=> "", "data-selected" => (index == 1 ? "true" : "false"), "data-pid" => product.id}
= humanized_money_with_symbol product.price_min, no_cents_if_whole: true
- if product.in_promotion?
= promotion_label(brand)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment