Project

General

Profile

Bug #443 ยป cgi_checkbox_group.patch

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

View differences:

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