# Collection\_select and remote\_function used together?

**URL:** <https://www.ruby-forum.com/t/collection-select-and-remote-function-used-together/87822>\
**Category:** Rails\
**Created:** [March 6, 2007, 6:52am UTC](https://www.ruby-forum.com/t/collection-select-and-remote-function-used-together/87822 "2007-03-06T06:52:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_Mario\_GSMazo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/71c47a/32.png) [@Jorge\_Mario\_GSMazo](https://www.ruby-forum.com/u/Jorge_Mario_GSMazo)\
**Post date:** [March 6, 2007, 6:52am UTC](https://www.ruby-forum.com/t/collection-select-and-remote-function-used-together/87822/1 "2007-03-06T06:52:46Z")

</div>

Hi there  
I have this code  
\<%= collection\_select ‘address’, ‘address’, @addresses, :id, :address,  
{},  
{ :onchange =\> remote\_function(:url =\> { :action =\>  
‘show\_order’, :controller =\> ‘addresses’, :id =\> @user },  
:update =\> ‘adrdiv’) }%\>

the @user id is passed but not the address id of the picked option in  
the select  
how do I pass both at the same time?

thanks in advance

–  
Jorge Mario G. Mazo
