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