Forum: Ruby on Rails select_tag and multiple => true

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.
Andrew F. (Guest)
on 2005-12-14 21:49
(Received via mailing list)
I was looking at how a select tag when set to multiple = true is
returned is just a comma separated list. My issue is that I would
rather not add quotes around the values in the list and it is
possible that my list may contain a comma. Is there a way to force
either to wrap the values returned to the server in quotes or force
an array to be returned as opposed to the comma separated one that I


chris clark (Guest)
on 2005-12-14 22:07
(Received via mailing list)
That is controlled by the browser, if you really need to you could
create a hidden form field and populate it using javascript.
If the select is dynamically created its best to use the id column for
the value and translate as needed.
This topic is locked and can not be replied to.