Forum: Ruby on Rails Get the options in a multiple select tag

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5059a110d251da5c0cc1a1485dcc8bdc?d=identicon&s=25 mrby (Guest)
on 2006-01-26 12:16
Hi, guys,

Is there a method in rails to get the options of a select tag of a form,
in the controller?

Specifically, I have two multiple select tags in a form, and by clicking
a button it will dynamically update the second by copying selected
options in the first. I want to get the "final" option list of the
second select tag in the form's onsubmit method which I wrote as a
method in the controller.

I have searched for quite a while but still get no idea. Can anyone here
give me
some hints?  Thanks much in advance ...

--
B.Y.
This topic is locked and can not be replied to.