- <%= link_to image_tag(product.image_url), {:action => "add_to_cart", :id => product}, :method => "post" %>
- <h3><%= link_to h(product.title), {:action => "add_to_cart", :id => product}, :method => "post" %></h3>
+ <% form_remote_tag :url => {:action => 'add_to_cart', :id => product} do %>
+ <%= image_submit_tag(product.image_url) %>
+ <% end %>
+ <h3><%= h(product.title) %></h3>