# How to send multiple values to controller using :with option of collection\_select

**URL:** <https://www.ruby-forum.com/t/how-to-send-multiple-values-to-controller-using-with-option-of-collection-select/163322>\
**Category:** Rails\
**Created:** [March 19, 2009, 8:36am UTC](https://www.ruby-forum.com/t/how-to-send-multiple-values-to-controller-using-with-option-of-collection-select/163322 "2009-03-19T08:36:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shripad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f17d59/32.png) [@Shripad](https://www.ruby-forum.com/u/Shripad)\
**Post date:** [March 19, 2009, 8:36am UTC](https://www.ruby-forum.com/t/how-to-send-multiple-values-to-controller-using-with-option-of-collection-select/163322/1 "2009-03-19T08:36:12Z")

</div>

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
