Project

General

Profile

Bug #444 ยป cgi_radio_group.patch

NoKarma (Arthur Schreiber), 08/15/2008 08:41 PM

View differences:

lib/cgi.rb (Arbeitskopie)
if value.kind_of?(String)
radio_button(name, value) + value
else
if value[value.size - 1] == true
radio_button(name, value[0], true) +
if value[value.size - 1] == true || value[value.size - 1] == false
radio_button(name, value[0], value[value.size - 1]) +
value[value.size - 2]
else
radio_button(name, value[0]) +
    (1-1/1)