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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C27f35ffdd3501f96c697a4826560f68?d=identicon&s=25 Brad (Guest)
on 2006-02-24 17:20
Hello,

I'm just getting started with Ruby on Rails. Of course, I bought the
"Agile Programming..." book. I went through the shopping cart (depot)
tutorial
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?

Thanks!
Brad
This topic is locked and can not be replied to.