2 <h1>Neil's Whimsical Store Catalogue</h1>
4 <% for product in @products -%>
6 <% form_remote_tag :url => {:action => 'add_to_cart', :id => product} do %>
7 <%= image_submit_tag(product.image_url) %>
9 <h3><%= h(product.title) %></h3>
10 <%= product.description %>
11 <div class="price-line">
12 <span class="price"><%= number_to_currency product.price, :unit => "£" %></span>
13 <% form_remote_tag :url => {:action => 'add_to_cart', :id => product} do %>
14 <%= submit_tag "Add to cart" %>