changelog shortlog tags changeset manifest revisions annotate raw

app/views/products/show.html.erb

changeset 19: a995025031b3
parent:5cf82beef889
author: moriq <moriq@moriq.com>
date: Mon Mar 10 11:04:49 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: 'Add to Cart'をorder_items resourceへのPOSTとみなす。
1<p>
2 <b>Name:</b>
3 <%=h @product.name %>
4</p>
5
6<p>
7 <b>Price:</b>
8 <%=h @product.price %>
9</p>
10
11
12<%= link_to 'Add to Cart', order_items_path(:order_item => { :product_id => @product.id, :quantity => 1 }), :method => :post %> |
13<%= link_to 'Edit', edit_product_path(@product) %> |
14<%= link_to 'Back', products_path %>