Moved to Netbeans 6.5. Started order creation
[depot.git] / app / views / line_items / index.html.erb
diff --git a/app/views/line_items/index.html.erb b/app/views/line_items/index.html.erb
new file mode 100644 (file)
index 0000000..7b07453
--- /dev/null
@@ -0,0 +1,26 @@
+<h1>Listing line_items</h1>
+
+<table>
+  <tr>
+    <th>Product</th>
+    <th>Order</th>
+    <th>Quantity</th>
+    <th>Total price</th>
+  </tr>
+
+<% for line_item in @line_items %>
+  <tr>
+    <td><%=h line_item.product_id %></td>
+    <td><%=h line_item.order_id %></td>
+    <td><%=h line_item.quantity %></td>
+    <td><%=h line_item.total_price %></td>
+    <td><%= link_to 'Show', line_item %></td>
+    <td><%= link_to 'Edit', edit_line_item_path(line_item) %></td>
+    <td><%= link_to 'Destroy', line_item, :confirm => 'Are you sure?', :method => :delete %></td>
+  </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New line_item', new_line_item_path %>