[Rails] Re: retrieving order quantity from form

2008-11-30 Thread Bcp
Look at the Dev logs, see the params hash and use that in controller. Http://www.rubyplus.org Free Ruby & Rails screencasts On Nov 28, 2008, at 3:52 PM, Joe Smith <[EMAIL PROTECTED] s.net> wrote: > > So i changed my view to include > > <% text_field_tag 'quantity' %> > > and I changed my con

[Rails] Re: retrieving order quantity from form

2008-11-28 Thread Joe Smith
It seems to 'work' (doesn't abort), but when I store it in my database I have a null value -- 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 p

[Rails] Re: retrieving order quantity from form

2008-11-28 Thread s.ross
On Nov 28, 2008, at 1:32 PM, Joe Smith wrote: > > 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 > > >

[Rails] Re: retrieving order quantity from form

2008-11-28 Thread Joe Smith
So i changed my view to include <% text_field_tag 'quantity' %> and I changed my controller's first line to say quantityordered = params[:quantity] Is this correct? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message beca