Forum: Ruby on Rails collection_select and remote_function used together?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
4f7fb063aecdf8344774cd7238d8b585?d=identicon&s=25 Jorge Mario G. Mazo (Guest)
on 2007-03-06 06:52
(Received via mailing list)
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
This topic is locked and can not be replied to.