search for: remove_from_cart

Displaying 1 result from an estimated 1 matches for "remove_from_cart".

2006 Apr 24
3
Form with multiple rows of content
...t;%= @item.product.title %> <%= text_field "item[]",''quantity'' %> <%= number_to_currency(@item.unit_price) %> $<%= @item.quantity * @item.unit_price %> <%= link_to ''Remove item'', {:action => ''remove_from_cart'', :id => @item.product} %> <% end %> Total $ <%= @cart.total_price %> <%= submit_tag ''Update Cart'' %> <%= end_form_tag %> In the Page->View source I find that all text boxes have the name item[quantity]. I expect...