Hi Everyone,
here is my code,
<%= start_form_tag :action => ‘update’, :id => @announcement, :multipart
=> true %>
<%= select_tag “announcement_select”,
options_from_collection_for_select(@announcement_list, “id”, “title”),
:multiple => true, :size => 7, :style =>“width:300”, :onchange =>
“document.location.href=’/announcement/index’” %>
<%= end_form_tag %>
what i want is to post this page to itself (controller name -
announcement) with different action to be taken (:action => ‘index’)
instead of ‘update’ action specified in the form_tag. And also pass the
selected announcement’s id to the ‘index’ action.
Please help me out.
Thanks in advance.
Regards,
Vasanth