Depot Application - Adding a Quantity field to the Store


I’m just getting started with Ruby on Rails. Of course, I bought the
“Agile Programming…” book. I went through the shopping cart (depot)
without any problem. However, I would like to change the cart so that
one can enter a quantity for each item desired.

I’m assuming that each item would need to be converted to include a
form with the a hidden field with Product.ID in it, and a text field
for the quantity. I’ve got this far, but can’t get the form to details
to be added to the cart.

Has anyone else tried to do this? Any ideas of how best to to do this?