Skip to content

Instantly share code, notes, and snippets.

@rocodev-tech
Created June 12, 2014 21:37
Show Gist options
  • Select an option

  • Save rocodev-tech/b33c82c56a1404d12f42 to your computer and use it in GitHub Desktop.

Select an option

Save rocodev-tech/b33c82c56a1404d12f42 to your computer and use it in GitHub Desktop.
app/views/product/show.html.erb
<div> 數量 : <%= render_product_quantity(@product) %> </div>
<div class="product-price"> $ <%= render_product_price(@product) %> </div>
<div class="pull-right">
<%= link_to("加入購物車", add_to_cart_product_path(@product) , :method => :post , :class => "btn btn-primary btn-lg btn-danger") %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment