Forum: Ruby on Rails Depot Application - Adding a Quantity field to the Store

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Brad (Guest)
on 2006-02-24 18:20

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?

This topic is locked and can not be replied to.