Forum: Ruby on Rails How to get the current value of a select box?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3f9427154be559607d926c1947bb21f7?d=identicon&s=25 Leo (Guest)
on 2007-04-25 07:14
(Received via mailing list)
Here is my code:

<input type="text" id="search_form" name="search" />
 <%= observe_field 'search_form',
                 :frequency => 0.5,
                 :update => 'results',
                 :url => { :controller => 'programs', :action=>
                 :search_type => select_type }, # an error occurs
                 :with => "'search_text=' + escape(value)"%>
<%= select "select","type",{"BOY" => '1', "Girl" => '2'}%>

Can anyone tell me how to pass the value of the select box when i call
This topic is locked and can not be replied to.