Get a Selected value

Hi,

I wonder how is possible to get a value that has been selected from the
elemenet “select” within a form.

This is my case:

<td><%= select :worker_contract, :contract_type_id,

contract_types_for_select.map{|c| [c.name, c.id]}, {:class =>
‘w150’, :selected => nil, :disabled => !admin?} %>

I would like to filter the value that the user selects on this dropdown
list.

Could you help me?

Best Regards

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.