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

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.
mrby (Guest)
on 2006-01-26 13: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 ...

This topic is locked and can not be replied to.