changeset 11: | 094fe4526925 |
author: | moriq@moriq.com |
date: | Mon Mar 10 03:31:38 2008 +0900 (16 years ago) |
permissions: | -rw-r--r-- |
description: | add scaffold order (add view). |
1<h1>Listing orders</h1>23<table>4 <tr>5 <th>Name</th>6 <th>Email</th>7 </tr>89<% for order in @orders %>10 <tr>11 <td><%=h order.name %></td>12 <td><%=h order.email %></td>13 <td><%= link_to 'Show', order %></td>14 <td><%= link_to 'Edit', edit_order_path(order) %></td>15 <td><%= link_to 'Destroy', order, :confirm => 'Are you sure?', :method => :delete %></td>16 </tr>17<% end %>18</table>1920<br />2122<%= link_to 'New order', new_order_path %>