changelog shortlog tags changeset file revisions annotate raw

app/views/orders/index.html.erb

revision 11: 094fe4526925
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/views/orders/index.html.erb	Mon Mar 10 03:31:38 2008 +0900
@@ -0,0 +1,22 @@
+<h1>Listing orders</h1>
+
+<table>
+  <tr>
+    <th>Name</th>
+    <th>Email</th>
+  </tr>
+
+<% for order in @orders %>
+  <tr>
+    <td><%=h order.name %></td>
+    <td><%=h order.email %></td>
+    <td><%= link_to 'Show', order %></td>
+    <td><%= link_to 'Edit', edit_order_path(order) %></td>
+    <td><%= link_to 'Destroy', order, :confirm => 'Are you sure?', :method => :delete %></td>
+  </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New order', new_order_path %>