Apologies first of all if this it the third time of seeing this, I posted previously but didn’t see it on the googlegroup archive or current discussions.
Ive got a form that’s based on a model that I need to put a drop down
box and additional text field to build the description for the item.
Many thanks for that! Just what I needed to know. I thought I tried that, but I guess I didnt.
Along the same lines how about when Ive got a select_date on the form? The data comes back in the params as
{stuff => “something”,
order=> {“thedate(3i)” =>“2009”,
“thedate(2i)” => “10”,
“thedate(1i)” => “1”}}
Ive tried
param[:order]:thedate
and
params[:order][:thedate(3i)]
and a load of other ways that are definately wrong! Ive also looked through the ruby book and the agile ruby on rails book, but not sure what to look for so cant help myself here.
Hi all,
I have two fields in a form.
One text field non asociated to the model for the user type a value. the view is:
<%= text_field_tag 'item_cod','', :size => 3 %>
Other a field with a select list with codes, names for the user select from. The view is:
I want the following behavior.
1. If the user type a code into the text_field tag -> Update the list so the user view the corresponding name of the item they type.
2. If the user select from the list -> Update the text field with the code corresponding to the name selected. (this is the easy part)
My form works fine with one Observe field for the :item_id list but I can't do work the point 1.