1 <h1>Neil's Whimsical Store Catalogue</h1>
3 <% for product in @products -%>
5 <%= link_to image_tag(product.image_url), {:action => "add_to_cart", :id => product}, :method => "post" %>
6 <h3><%= link_to h(product.title), {:action => "add_to_cart", :id => product}, :method => "post" %></h3>
7 <%= product.description %>
8 <div class="price-line">
9 <span class="price"><%= number_to_currency product.price, :unit => "£" %></span>
10 <%= button_to "Add to cart", :action => "add_to_cart", :id => product %>