Skip to content

Commit

Permalink
自由課題, image_submit_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kyanny committed Jan 21, 2010
1 parent 1db36aa commit 4430cbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion depot/app/views/store/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

<% for product in @products -%>
<div class="entry">
<%= link_to image_tag(product.image_url), { :action => "add_to_cart" }, { :method => "post" } %>
<% form_remote_tag :url => { :action => "add_to_cart", :id => product } do %>
<%= image_submit_tag(product.image_url) %>
<% end %>
<h3><%=h product.title %></h3>
<%= product.description %>
<div class="price-line">
Expand Down

0 comments on commit 4430cbe

Please sign in to comment.