Forum: Ruby CGI

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
CGI
8af3fae90d809c793d84418a3fe36a53?d=identicon&s=25 JoeyP (Guest)
on 2007-04-03 16:24
(Received via mailing list)
Am I not able to build a string and pass it to the cgi class?

#!/usr/bin/ruby -w
require 'cgi'

mystring = ""
mystring << "\'bgcolor\' => \'blue\' "


cgi.body(mystring) {


This will not give me an error but the parameter for body shows up
blank.
if I write:

cgi.p { mystring }  I can see that the string is formatted correctly.

Any ideas?

Thanks in advance
4371f8fa1c3574e74d8f88c77d23e7d7?d=identicon&s=25 Harry Ha (harry)
on 2007-04-04 01:23
(Received via mailing list)
On 4/3/07, JoeyP <plantz.3@wright.edu> wrote:
>
>
>
>


myhash = {"BGCOLOR" => "BLUE"}

cgi.body(myhash) { }



Harry

--

http://www.kakueki.com/ruby/list.html
Japanese Ruby List Subjects in English
This topic is locked and can not be replied to.