changelog shortlog tags changeset manifest revisions annotate raw

app/views/order_items/index.html.erb

changeset 12: 755229281e85
author: moriq <moriq@moriq.com>
date: Mon Mar 10 03:51:59 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add scaffold order_item.
1<h1>Listing order_items</h1>
2
3<table>
4 <tr>
5 <th>Order</th>
6 <th>Product</th>
7 <th>Quantity</th>
8 </tr>
9
10<% for order_item in @order_items %>
11 <tr>
12 <td><%=h order_item.order %></td>
13 <td><%=h order_item.product %></td>
14 <td><%=h order_item.quantity %></td>
15 <td><%= link_to 'Show', order_item %></td>
16 <td><%= link_to 'Edit', edit_order_item_path(order_item) %></td>
17 <td><%= link_to 'Destroy', order_item, :confirm => 'Are you sure?', :method => :delete %></td>
18 </tr>
19<% end %>
20</table>
21
22<br />
23
24<%= link_to 'New order_item', new_order_item_path %>