CGI is loaded already, try using it without requiring it again.
--
Michael Fellinger
CTO, The Rubyists, LLC
On Aug 26, 2010, at 9:19 , felipon wrote:
> I don't think so ... look
Ah, the namespace thing again.
Felipon, I suggest you ask a different question...
"If Ramaze is requiring the standard CGI library, then how do I access it?"
> class MainController < Controller
> def ceegee
> CGI::escapeHTML('Some "testing&experimenting/looking"')
> end
> end
>
>
> http://localhost:7000/ceegee
>
> NoMethodError at /ceegee
> undefined method `escapeHTML' for Innate::Helper::CGI:Module
Lars tells us:
> CGI is a top level module. Please use ::CGI when referring to it from
> within Ramaze.
Sure enough,
> class MainController < Controller
> def ceegee
> ::CGI::escapeHTML('Some "testing&experimenting/looking"')
> end
> end
seems to work.
Which leads me to wonder what that means. The RDocs only speak of Rack::Handler::CGI and Innate::Helper::CGI. How many top level modules are there, and what are they?
See http://doc.rubyists.com/ramaze+innate/Innate/Helper/CGI.html
>
> seems to work.
>
>
> Which leads me to wonder what that means. The RDocs only speak of Rack::Handler::CGI and Innate::Helper::CGI. How many top level modules are there, and what are they?
--