Forum: Ruby on Rails radio_button with arrays

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.
Jake J. (Guest)
on 2005-11-29 02:27

I would like to display a list of (say 5) groups of radio buttons.  Each
group may have a variable number of choices.  I'm wondering how to pass
the initial values (controller->view) and how to get them back out

Essentially, the result should look something like:
radio[0] = 3  (choices were 3, 15, 32)
radio[1] = 14 (choices were 1, 14)
radio[2] = 44 (choices were 42, 43, 44)
radio[3] = 97 (choices were 0, 1, 97, 43, 32, 35)

and so on.

Any suggestions would be very helpful.

This topic is locked and can not be replied to.