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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---