X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Fstore%2Findex.html.erb;h=fff01dffcb953c92a0c8ebd97a8042ef28c58ebb;hb=aff195f08c5fc2b8db74058b34720164148cfb4e;hp=c65b69b114087113b282c84c086517e72c043c61;hpb=c611b802645df9f0b490550d8c352fd24eb6ec5b;p=depot.git diff --git a/app/views/store/index.html.erb b/app/views/store/index.html.erb index c65b69b..fff01df 100644 --- a/app/views/store/index.html.erb +++ b/app/views/store/index.html.erb @@ -7,7 +7,9 @@ <%= product.description %>
<%= number_to_currency product.price, :unit => "£" %> - <%= button_to "Add to cart", :action => "add_to_cart", :id => product %> + <% form_remote_tag :url => {:action => 'add_to_cart', :id => product} do %> + <%= submit_tag "Add to cart" %> + <% end %>
<% end %>