changelog shortlog tags changeset file revisions annotate raw

app/views/order_items/index.html.erb

revision 12: 755229281e85
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/views/order_items/index.html.erb	Mon Mar 10 03:51:59 2008 +0900
@@ -0,0 +1,24 @@
+<h1>Listing order_items</h1>
+
+<table>
+  <tr>
+    <th>Order</th>
+    <th>Product</th>
+    <th>Quantity</th>
+  </tr>
+
+<% for order_item in @order_items %>
+  <tr>
+    <td><%=h order_item.order %></td>
+    <td><%=h order_item.product %></td>
+    <td><%=h order_item.quantity %></td>
+    <td><%= link_to 'Show', order_item %></td>
+    <td><%= link_to 'Edit', edit_order_item_path(order_item) %></td>
+    <td><%= link_to 'Destroy', order_item, :confirm => 'Are you sure?', :method => :delete %></td>
+  </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New order_item', new_order_item_path %>