--20cf303a2f25892ee6049f07f2ff
Content-Type: text/plain; charset=ISO-8859-1

On Mon, Mar 21, 2011 at 5:18 PM, andrew mcelroy <sophrinix / gmail.com> wrote:

>
>
> On Mon, Mar 21, 2011 at 3:11 PM, Kevin Kevin <kevin_de_valck / hotmail.com>wrote:
>
>> Hello,
>>
>> Does anybody know how I can run ruby cgi scripts in my web server. I
>> coded the webserver myself in ruby. At this moment I use ERB to parse
>> the .rhtml files. It all works fine but now i want to use the
>> functionality of CGI to extend my webserver. So I would like to read the
>> CGI file, parse it and send my html output to the user's webbrowser.
>>
>> So does anybody knows how to run a CGI file?
>>
> CGI is part of standard lib. try ruby uses it (until i can get a sessions
> issue worked out in rails).
>

I should clarify that try ruby is open source:
http://github.com/sophrinix/TryRuby
the /public directory is the ruby CGI 1.9.2 based version. it will show you
how to write a ruby cgi website.  I didn't mean that to come off as self
promoting as it may of sounded.

Andrew McElroy
http://TryRuby.org

>
> Andrew McElroy
> http://tryruby.org
>
>>
>> --
>>
>> Posted via http://www.ruby-forum.com/.
>>
>>
>

--20cf303a2f25892ee6049f07f2ff--