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
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
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
>
>
>
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
4 matches
Mail list logo