Bug #444: [PATCH] CGI#radio_group raises a TypeError when passing false as checked value
http://redmine.ruby-lang.org/issues/show/444

Author: Arthur Schreiber
Status: Open, Priority: Normal

c = CGI.new("html4")
c.radio_group("test", ["bar", "label for bar", false])
=> TypeError: can't convert false into String

After applying the patch:

c.radio_group("test", ["bar", "label for bar", false])
=> "<INPUT NAME=\"test\" TYPE=\"radio\" VALUE=\"bar\">label for bar"


----------------------------------------
http://redmine.ruby-lang.org