observing collection_select + text_field

Justin To
Thu, 31 Jul 2008 21:19:00 -0000

<%= collection_select(:category, :id, @categories, :id, :name,
options ={:prompt => "-Select categories-"},
:class=>"category_dropdown_list") %>



        <%= text_field_tag :search, params[:search],
:id=>"search_form",
:value=>params[:search] %>


                  <%= observe_field ''search_form'',
                              :frequency => 0.5,
                              :url => { :controller =>
''auth_user'',
:action => ''get_results'' },
                              :loading =>
"Element.show(''indicator_gif_id'')",
                              :complete =>
"Element.hide(''indicator_gif_id'')",
                              :with => "''search_text=''
+ escape(value)"
%>

I can observe the text_field, but how do I send the current selected
value of the collection_select also. :with => selected item in
collection_select

Thanks!
--
Posted via http://www.ruby-forum.com/.