# IIS 7 HttpModule for Rails/Rack with IronRuby

**URL:** <https://www.ruby-forum.com/t/iis-7-httpmodule-for-rails-rack-with-ironruby/159797>\
**Category:** IronRuby\
**Created:** [February 8, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/iis-7-httpmodule-for-rails-rack-with-ironruby/159797 "2009-02-08T23:04:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hotgazpacho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a587f6/32.png) [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Post date:** [February 8, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/iis-7-httpmodule-for-rails-rack-with-ironruby/159797/1 "2009-02-08T23:04:26Z")

</div>

First, I want to say that I’m very excited by the progress of IronRuby.

So, my interrest lies in getting Ruby web applications running through  
IIS 7. Specifically Rails, but also others like Sinatra and Merb, all  
of which are now built on Rack. Rack implements a new web-to-  
application protocol, based partly on Python’s WSGI, which supplants  
FastCGI.

I’ve looked, and someone has already created nWSGI on CodePlex. This  
project implements WSGI, and hosts IronPython to run the Python app.

I’m thinking of taking a similar approach, but one of the key  
requirements of the Rack protocol is that the Rack application’s call  
method takes exactly one param: a Ruby Hash; it cannot be a subclass.  
Reading the status at [IronRuby.net](http://IronRuby.net), it looks like Hash is not yet  
implemented. Is this the case?

I guess I’m looking to see if my project is something that can be done  
at this time, or if IronRuby needs some more help before I can attempt  
it. I’d be happy to contribute time & code to get this working.

Thanks!

Will G.

---

<div class="post-metadata">

**Author:** ![hotgazpacho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a587f6/32.png) [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Post date:** [February 9, 2009, 12:12am UTC](https://www.ruby-forum.com/t/iis-7-httpmodule-for-rails-rack-with-ironruby/159797/2 "2009-02-09T00:12:22Z")

</div>

Hash is mostly implemented. Can you post a link to the page where it  
shows it as not done? I’ll fix it. I don’t know if any of the methods  
needed by Rack are missing. Jimmy, have you tried this scenario?

In the mean time, if you started down this road, we’d be happy to have  
your contributions. If you haven’t already, you’ll need to get setup to  
contribute. The instructions are on the Github wiki at:  
[http://wiki.github.com/ironruby/ironruby/contributing](http://wiki.github.com/ironruby/ironruby/contributing).

Thanks,

JD

---

<div class="post-metadata">

**Author:** ![hotgazpacho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a587f6/32.png) [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Post date:** [February 9, 2009, 12:41am UTC](https://www.ruby-forum.com/t/iis-7-httpmodule-for-rails-rack-with-ironruby/159797/3 "2009-02-09T00:41:02Z")

</div>

Woops, looks like it was on the GitHub wiki, and I may have ascribed  
more  
meaning to what is there:  
[http://wiki.github.com/ironruby/ironruby/libraries](http://wiki.github.com/ironruby/ironruby/libraries)

I just had this idea this morning after attending a regional Ruby  
conference  
(acts\_as\_conference). I’ll get right on getting set up.

Thanks!

==  
Will

---

<div class="post-metadata">

**Author:** ![hotgazpacho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a587f6/32.png) [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Post date:** [February 9, 2009, 9:33pm UTC](https://www.ruby-forum.com/t/iis-7-httpmodule-for-rails-rack-with-ironruby/159797/4 "2009-02-09T21:33:42Z")

</div>

Hi Will,  
If you want any help (I’m the author of NWSGI) drop me a line. The  
specifications certainly are very similar; NWSGI is only a couple  
hundred lines, so I doubt a Rack implementation would be any larger.

The really hard part is building the management interface - WinForms  
is a huge PITA.

- Jeff

---

<div class="post-metadata">

**Author:** ![hotgazpacho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a587f6/32.png) [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Post date:** [February 10, 2009, 2:35am UTC](https://www.ruby-forum.com/t/iis-7-httpmodule-for-rails-rack-with-ironruby/159797/5 "2009-02-10T02:35:33Z")

</div>

Will,

That page on github is wildly out of date (and I’ve updated it to say  
so). [http://ironruby.info](http://ironruby.info) will have daily information on where IronRuby  
is at with supporting RubySpec, as well as other popular Ruby  
frameworks. Right now it’s just RubySpec pass/fail information, but  
stack traces and more data are coming soon.

---

<div class="post-metadata">

**Author:** ![hotgazpacho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a587f6/32.png) [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Post date:** [February 11, 2009, 10:45pm UTC](https://www.ruby-forum.com/t/iis-7-httpmodule-for-rails-rack-with-ironruby/159797/6 "2009-02-11T22:45:28Z")

</div>

Hi Will,

I’d be keen to help you with that… If you’ve created a project on  
github  
please post the url so we can clone, fork and contribute 🙂

cheers  
Ivan

2009/2/9 Will G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![hotgazpacho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a587f6/32.png) [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Post date:** [February 12, 2009, 5:56am UTC](https://www.ruby-forum.com/t/iis-7-httpmodule-for-rails-rack-with-ironruby/159797/7 "2009-02-12T05:56:00Z")

</div>

Awesome. I havenâ€™t had a chance to get started yet; very hectic at work  
this week.

From: Ivan Porto C. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, February 11, 2009 1:28 PM  
To: ironruby-core  
Subject: Re: [Ironruby-core] IIS 7 HttpModule for Rails/Rack with  
IronRuby

Hi Will,

I’d be keen to help you with that… If you’ve created a project on  
github please post the url so we can clone, fork and contribute 🙂

cheers  
Ivan

2009/2/9 Will G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Woops, looks like it was on the GitHub wiki, and I may have ascribed  
more  
meaning to what is there:  
[http://wiki.github.com/ironruby/ironruby/libraries](http://wiki.github.com/ironruby/ironruby/libraries)

I just had this idea this morning after attending a regional Ruby  
conference  
(acts\_as\_conference). I’ll get right on getting set up.

Thanks!

==  
Will
