Forum: Ruby on Rails radio_button with arrays

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.
E51c6ae07e72cf04ef869868cb8eca6e?d=identicon&s=25 Jake Janovetz (Guest)
on 2005-11-29 01:27
Hello-

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
properly.

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.

   Jake
This topic is locked and can not be replied to.