Running Ruby on Windows

Hi,

If mod_ruby is only available for *nix systems, how can I code ruby
scripts into HTML files without using rails? Does webrick still work?

It also seems that eRuby no longer exists so how would apache be set up
to handle embedded rubY?

thanks :slight_smile:

On 10/15/06, Sir P. [email protected] wrote:

It also seems that eRuby no longer exists so how would apache be set up
to handle embedded rubY?

You can run it via CGI method. I just found the article here:
http://www.hiveminds.co.uk/node/3094

Regards,

Sir P. wrote:

If mod_ruby is only available for *nix systems, how can I code ruby
scripts into HTML files without using rails? Does webrick still work?

Webrick works happily, I thought.

Alternately, gang up Apache with Mongrel for more speed? (I’d avoid
lighttpd since I don’t trust that Cygwin doesn’t do Cruel and Unusual
things to IO performance.)

David V.

On 10/15/06, David V. [email protected] wrote:

Sir P. wrote:

If mod_ruby is only available for *nix systems, how can I code ruby
scripts into HTML files without using rails? Does webrick still work?

Webrick works happily, I thought.

Right. Either use Webrick’s cgi handler - there was a thread on this a
few weeks ago - or write a special handler. The same should be
possible with Mongrel.

The same should be possible with Mongrel.

You may want to check out Ezra’s latest project [1], it looks quite
promising.
It’s called Merb (Merb == Mongrel + Erb)

Nathan

[1] http://brainspl.at/articles/2006/10/09/introducing-the-merb

Sir P. wrote:

Hi,

If mod_ruby is only available for *nix systems, how can I code ruby
scripts into HTML files without using rails? Does webrick still work?

It also seems that eRuby no longer exists so how would apache be set up
to handle embedded rubY?

thanks :slight_smile:

I’m not sure what you’re trying to do with Ruby, but what you describe
is mere inches away from “Instant Rails”, so I’d download that and start
experimenting!

On Oct 15, 2006, at 11:04 AM, Nathan G. wrote:

–
Posted via http://www.ruby-forum.com/.

http://brainspl.at/articles/2006/10/15/merb-gets-cool-routes-and-file-
uploads :wink:

Cheers-

– Ezra Z.
– Lead Rails Architect
– [email protected]
– Engine Y., Serious Rails Hosting
– Reliability, Ease of Use, Scalability
– (866) 518-YARD (9273)