Shripad
2009-Mar-19 07:35 UTC
How to send multiple values to controller using :with option of collection_select
Hi, Thank u all for replying my previous posts. I have following problem I want to send multiple selected values from collection_select using ":with" option to a controller without submitting the form, i have following code <%= collection_select(:cluster, :CLST_RegionID, regions, :id, :REG_RegionName, {:prompt => "Please Select"}, {:onchange => "#{remote_function(:url => {:action => "update_clusters"}, :with => "''id=''+value")}"}) %> this works fine for single value, when I write ":multiple => true" it is not allowing me to pass multiple values. what should I change in the above code to passing multiple values to controller? Please help me out, Thanks, Shripad --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Maybe Matching Threads
- return value from collection_select
- Getting joined collections on a form
- Selecting customers and addresses in a form (was Getting joined collections on a form)
- Dynamic drop-downs in a form_for using AJAX remote_function - Help
- Problems with :onchange for radio_button_tag