Project

General

Profile

Actions

Bug #444

closed

[PATCH] CGI#radio_group raises a TypeError when passing false as checked value

Added by NoKarma (Arthur Schreiber) over 16 years ago. Updated over 13 years ago.

Status:
Rejected
Target version:
-
ruby -v:
[ruby-core:18307]

Description

=begin
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"
=end


Files

cgi_radio_group.patch (597 Bytes) cgi_radio_group.patch NoKarma (Arthur Schreiber), 08/15/2008 08:41 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0