# Is the CGI instance "html" method no longer available?

**URL:** <https://www.ruby-forum.com/t/is-the-cgi-instance-html-method-no-longer-available/190661>\
**Category:** Ruby\
**Created:** [June 24, 2010, 7:01pm UTC](https://www.ruby-forum.com/t/is-the-cgi-instance-html-method-no-longer-available/190661 "2010-06-24T19:01:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/a9a28c/32.png) [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Post date:** [June 24, 2010, 7:01pm UTC](https://www.ruby-forum.com/t/is-the-cgi-instance-html-method-no-longer-available/190661/1 "2010-06-24T19:01:01Z")

</div>

> undefined method `html’ for #CGI:0xb783f268 (NoMethodError)  
> ???

---

<div class="post-metadata">

**Author:** ![Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/a9a28c/32.png) [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Post date:** [June 24, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/is-the-cgi-instance-html-method-no-longer-available/190661/2 "2010-06-24T19:15:05Z")

</div>

On 10-06-24 10:00 AM, Xeno C. / Eskimo North and Gmail wrote:

> > undefined method `html’ for #CGI:0xb783f268 (NoMethodError)  
> > ???

I tried taking it out and using html4, but now I get this:

/usr/lib/ruby/1.8/cgi.rb:726:in `out': private method`print’ called for  
“”:String (NoMethodError)

What have I done? This has worked correctly for years?

---

<div class="post-metadata">

**Author:** ![Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/a9a28c/32.png) [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Post date:** [June 24, 2010, 7:36pm UTC](https://www.ruby-forum.com/t/is-the-cgi-instance-html-method-no-longer-available/190661/3 "2010-06-24T19:36:09Z")

</div>

On 10-06-24 10:14 AM, Xeno C. / Eskimo North and Gmail wrote:

> What have I done? This has worked correctly for years?

This routine is working in other environments, even on other Ubuntu  
installations, but not on this latest one:

def putFAILMessagePage(topicStr)  
responseMarkup =  
“\n” +  
“

#### ” + “Response to #{ProductLabel} #{topicStr} submission at #{Time.now}” + “
\n” +  
“
\n” +  
“Submission FAILED” +  
“
\n” +  
“
##### ” + $diagnostic\_message + “
\n” +  
“\n”  
$CGIo.out{  
$CGIo.html{  
$CGIo.head{ $CGIo.title{ “#{ProductLabel}: #{topicStr}” }  
} +  
responseMarkup  
}  
}  
end

The comment about the private method print about seems to be  
consistent…

Anyone know what I’m getting this from? This is a late version of  
Ubuntu  
Server…???
