1 <div id="product-list">
2 <h1>Listing products</h1>
5 <% for product in @products %>
6 <tr class="<%= cycle('list-line-odd', 'list-line-even')%>">
9 <%= image_tag product.image_url, :class => 'list-image' %>
12 <td class="list-description">
14 <dt><%= h product.title %></dt>
15 <dd><%= h truncate(product.description.gsub(/<.*?>/, ''),
16 :length => 80) %></dd>
20 <td class="list-actions">
21 <%= link_to 'Show', product %><br/>
22 <%= link_to 'Edit', edit_product_path(product) %><br/>
23 <%= link_to 'Destroy', product,
24 :confirm => 'Are you sure?',
34 <%= link_to 'New product', new_product_path %>