Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Is the CGI instance "html" method no longer available?

Reply
Thread Tools

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

 
 
Xeno Campanoli / Eskimo North and Gmail
Guest
Posts: n/a
 
      06-24-2010
> undefined method `html' for #<CGI:0xb783f268> (NoMethodError)
???
--
"It's the preponderance, stupid!" - Professor Stephen Schneider, IPCC member

 
Reply With Quote
 
 
 
 
Xeno Campanoli / Eskimo North and Gmail
Guest
Posts: n/a
 
      06-24-2010
On 10-06-24 10:00 AM, Xeno Campanoli / 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?


--
"It's the preponderance, stupid!" - Professor Stephen Schneider, IPCC member

 
Reply With Quote
 
 
 
 
Xeno Campanoli / Eskimo North and Gmail
Guest
Posts: n/a
 
      06-24-2010
On 10-06-24 10:14 AM, Xeno Campanoli / Eskimo North and Gmail wrote:
> On 10-06-24 10:00 AM, Xeno Campanoli / 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?
>
>

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

--
"It's the preponderance, stupid!" - Professor Stephen Schneider, IPCC member

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why can't an instance instantiated within a class method access aprotected instance method? Greg Hauptmann Ruby 9 06-16-2008 10:16 AM
instance method adding another instance method to the class Raj Singh Ruby 2 05-29-2008 10:09 PM
TypeError: unbound method PrintInput() must be called with test instance as first argument (got test instance instead) arotem Python 4 10-17-2005 07:52 AM
Programs taking longer and longer to start up. Help please. Goforit Computer Information 9 07-25-2004 06:34 AM
Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class. DJ Dev ASP .Net 3 02-08-2004 04:19 PM



Advertisments