Project

General

Profile

Bug #444 ยป cgi_radio_group.patch

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

View differences:

lib/cgi.rb (Arbeitskopie)
1933 1933
        if value.kind_of?(String)
1934 1934
          radio_button(name, value) + value
1935 1935
        else
1936
          if value[value.size - 1] == true
1937
            radio_button(name, value[0], true) +
1936
          if value[value.size - 1] == true || value[value.size - 1] == false
1937
            radio_button(name, value[0], value[value.size - 1]) +
1938 1938
            value[value.size - 2]
1939 1939
          else
1940 1940
            radio_button(name, value[0]) +