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

  • Thread starter Xeno Campanoli / Eskimo North and Gmail
  • Start date
X

Xeno Campanoli / Eskimo North and Gmail

undefined method `html' for #<CGI:0xb783f268> (NoMethodError)
???
 
X

Xeno Campanoli / Eskimo North and Gmail


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?
 
X

Xeno Campanoli / Eskimo North and Gmail

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?
This routine is working in other environments, even on other Ubuntu
installations, but not on this latest one:

def putFAILMessagePage(topicStr)
responseMarkup =
"<body style='background-color: red'>\n" +
"<h4>" +
"Response to #{ProductLabel} #{topicStr} submission at #{Time.now}" +
"</h4>\n" +
"<div style='background-color: red; font-size: 48pt'>\n" +
"Submission FAILED" +
"</div>\n" +
"<h5>" + $diagnostic_message + "</h5>\n" +
"</body>\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...???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top