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

Discussion in 'Ruby' started by Xeno Campanoli / Eskimo North and Gmail, Jun 24, 2010.

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

  2. 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
     
    Xeno Campanoli / Eskimo North and Gmail, Jun 24, 2010
    #2
    1. Advertising

  3. 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
     
    Xeno Campanoli / Eskimo North and Gmail, Jun 24, 2010
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nbdy9(nospam)

    session state that is no longer available?

    nbdy9(nospam), Apr 7, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    3,598
    nbdy9(nospam)
    Apr 7, 2004
  2. Stan
    Replies:
    5
    Views:
    2,243
    demon420
    Jan 9, 2006
  3. John Dean
    Replies:
    51
    Views:
    1,191
    phil hunt
    Nov 7, 2003
  4. Raj Singh
    Replies:
    2
    Views:
    206
    Rick DeNatale
    May 29, 2008
  5. Greg Hauptmann
    Replies:
    9
    Views:
    257
    Loren Segal
    Jun 16, 2008
Loading...

Share This Page