I have a shopping cart screen where I display my available item and all
it's description info and then want to have the user enter a quantity.
I show all my item fields, e.g.

<%= @item.item_id %>

Then I have a field defined



<%=  text_field 'shopping_cart_item' , 'quantity' %>

In my controller, how do I access this data?

I've tried many different ways, I just want to get this quantity first
to validate that it's a number, that it's less than the quantity
available, etc, then create a shopping cart record.

Help, I've spent a long time on this.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to