Hi All,
I have a table and in it is a cell like this:
<td>
<%=text_field_tag 'quantity', line_item.quantity, {:size => 1} %>
</td>
So, when the page loads, this text box will contain the quantity value
of my
line_item.
Down below, I give the user the option to change the quantity of the
line
item and then update their cart.
The link looks like this:
<%=link_to ‘Update Quantity’, :controller => ‘cart’, :action =>
‘update_line_item_quantity’, :new_quantity => quantity, :line_item_index
=>
line_item_index %>
The :new_quantity => quantity part doesn’t work.
What’s the proper way to refer to the value of the contents of the text
box?
Thanks for any help!
–
Terry (TAD) Donaghe
http://tadspot.tumblr.com