# Running Ruby on Windows

**URL:** <https://www.ruby-forum.com/t/running-ruby-on-windows/72196>\
**Category:** Ruby\
**Created:** [October 15, 2006, 12:11pm UTC](https://www.ruby-forum.com/t/running-ruby-on-windows/72196 "2006-10-15T12:11:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincpa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e19adc/32.png) [@vincpa](https://www.ruby-forum.com/u/vincpa)\
**Post date:** [October 15, 2006, 12:11pm UTC](https://www.ruby-forum.com/t/running-ruby-on-windows/72196/1 "2006-10-15T12:11:56Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![vincpa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e19adc/32.png) [@vincpa](https://www.ruby-forum.com/u/vincpa)\
**Post date:** [October 15, 2006, 5:12pm UTC](https://www.ruby-forum.com/t/running-ruby-on-windows/72196/2 "2006-10-15T17:12:32Z")

</div>

On 10/15/06, Sir P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://www.hiveminds.co.uk/node/3094)

Regards,

---

<div class="post-metadata">

**Author:** ![vincpa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e19adc/32.png) [@vincpa](https://www.ruby-forum.com/u/vincpa)\
**Post date:** [October 15, 2006, 6:18pm UTC](https://www.ruby-forum.com/t/running-ruby-on-windows/72196/3 "2006-10-15T18:18:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vincpa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e19adc/32.png) [@vincpa](https://www.ruby-forum.com/u/vincpa)\
**Post date:** [October 15, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/running-ruby-on-windows/72196/4 "2006-10-15T19:06:50Z")

</div>

On 10/15/06, David V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![vincpa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e19adc/32.png) [@vincpa](https://www.ruby-forum.com/u/vincpa)\
**Post date:** [October 15, 2006, 8:04pm UTC](https://www.ruby-forum.com/t/running-ruby-on-windows/72196/5 "2006-10-15T20:04:32Z")

</div>

> 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](http://brainspl.at/articles/2006/10/09/introducing-the-merb)

---

<div class="post-metadata">

**Author:** ![vincpa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e19adc/32.png) [@vincpa](https://www.ruby-forum.com/u/vincpa)\
**Post date:** [October 15, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/running-ruby-on-windows/72196/6 "2006-10-15T20:57:01Z")

</div>

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 🙂

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!

---

<div class="post-metadata">

**Author:** ![vincpa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e19adc/32.png) [@vincpa](https://www.ruby-forum.com/u/vincpa)\
**Post date:** [October 15, 2006, 9:27pm UTC](https://www.ruby-forum.com/t/running-ruby-on-windows/72196/7 "2006-10-15T21:27:04Z")

</div>

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

> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

[http://brainspl.at/articles/2006/10/15/merb-gets-cool-routes-and-file-](http://brainspl.at/articles/2006/10/15/merb-gets-cool-routes-and-file-)  
uploads 😉

Cheers-

– Ezra Z.  
– Lead Rails Architect  
– removed\_email\_address@domain.invalid  
– Engine Y., Serious Rails Hosting  
– Reliability, Ease of Use, Scalability  
– (866) 518-YARD (9273)
