in partial (view)
changing the select will call the action select_item_in_history with params['history_sel'] set to the selected value.
<%= select('history', 'sel', history_list, {:selected => selected}, {:class => 'historyselect'}) %>
<%= link_to_remote 'x',
:url => {:controller => 'rriki',
:action => 'clear_history'},
:html => {:title => 'Clear history'},
:method => :get %>
<%= observe_field 'history_sel',
:url => {:controller => 'rriki',
:action => 'select_item_in_history'},
:with => 'history_sel' %>
changing the select will call the action select_item_in_history with params['history_sel'] set to the selected value.
Comments
Post a Comment