I probably didn''t clearly phrase my question:
- I actually want to know how I can read the selected value from the
drop down list. Thus, how do I give the drop down list a name and read
the data in my controller.
- Is it possible to supply a variable that, when matching with the
option list, will be the default selected value?
Thanks in advance
Stijn
On 30 jan, 16:56, "Tarscher"
<tarsc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> hi all,
>
> I want a drop down list with 3 select options.:
> <%= select(:variable, :attribute, %w{ Club Ploeg Tak }) %>
>
> I use this selection box in a partial and want to both use it to add
> and update records. When updating a record the selection box must thus
> be able to select a value by default. Can this be done?
>
> The value, if present is contained in the variable tree.kind
>
> how do I read the selected values in my controller. I don''t know
what
> name the drop down list has.
>
> regards,
> Stijn
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---