Displaying 1 result from an estimated 1 matches for "update_cart".
Did you mean:
update_card
2006 Apr 24
3
Form with multiple rows of content
...n the
Agile Web Dev... book but that didn''t help. Here''s what i am trying to
do.
A Cart has many line items. On the Display Cart page, I want to provide
the user the option to update quantities.
Here''s the rhtml code:
<%= start_form_tag :action => ''update_cart'' %>
<% for @item in @items %>
<%= @item.product.title %>
<%= text_field "item[]",''quantity'' %>
<%= number_to_currency(@item.unit_price) %>
$<%= @item.quantity * @item.unit_price %>
<%= li...