changelog shortlog tags changeset manifest revisions annotate raw

app/views/products/index.html.erb

changeset 9: 5cf82beef889
author: moriq@moriq.com
date: Mon Mar 10 03:22:11 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add scaffold product.
1<h1>Listing products</h1>
2
3<table>
4 <tr>
5 <th>Name</th>
6 <th>Price</th>
7 </tr>
8
9<% for product in @products %>
10 <tr>
11 <td><%=h product.name %></td>
12 <td><%=h product.price %></td>
13 <td><%= link_to 'Show', product %></td>
14 <td><%= link_to 'Edit', edit_product_path(product) %></td>
15 <td><%= link_to 'Destroy', product, :confirm => 'Are you sure?', :method => :delete %></td>
16 </tr>
17<% end %>
18</table>
19
20<br />
21
22<%= link_to 'New product', new_product_path %>