I would use an observer like this:
<%= select_tag :foo, [1,2,3,4], 1) %> <%= observe_field :foo, :url => {:action => :bar}, :with => 'foo' -%>
Make sure you include the :with => 'foo' as that will become params[foo] and will be equal to the selected value in the select
see: http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M000535
Mix Mix wrote: