# Please test ironrubymvc

**URL:** <https://www.ruby-forum.com/t/please-test-ironrubymvc/162160>\
**Category:** IronRuby\
**Created:** [March 6, 2009, 10:39am UTC](https://www.ruby-forum.com/t/please-test-ironrubymvc/162160 "2009-03-06T10:39:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [March 6, 2009, 10:39am UTC](https://www.ruby-forum.com/t/please-test-ironrubymvc/162160/1 "2009-03-06T10:39:49Z")

</div>

Hi  
I’m going to take this weekend to add some more error checking to  
IronRuby  
MVC and to create a readme with a quick sample.  
But as things stand I think you should have a usable version of IronRuby  
MVC  
currently in my github repo ([GitHub - casualjim/ironrubymvc: IronRuby ASP.NET MVC otherwise known as ASP.NET MVC rubification](http://github.com/casualjim/ironrubymvc)).

I would love to see some bugs being found 🙂

So if you’re interested to help, please get the source and try to build  
an  
[ASP.NET](http://ASP.NET) MVC application with ironruby or help me out by writing specs.

There is something pretty annoying though. When you’re in a C# project  
(like  
a library or an MVC project) and you create a text file. VS will help  
you  
out by adding a BOM to the file. Now IronRuby doesn’t know how to handle  
files like that.  
I realise you can do File - Save as - Save with encoding but that didn’t  
have the desired effect either. So in the end i created my ruby files  
with  
Notepad++ and added those to the IronRuby mvc project.

This wasn’t a problem earlier because I had created my own reader and  
script  
runner, and I just refactored to use StreamContentProviders from  
Microsoft.Scripting. As soon as I use the DLR infrastructure it starts  
complaining about the BOM’s.  
(Invalid character Ã¯ found).

I’d like to thank Jimmy for his advice.

Thanks  
Ivan

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [March 6, 2009, 12:17pm UTC](https://www.ruby-forum.com/t/please-test-ironrubymvc/162160/2 "2009-03-06T12:17:40Z")

</div>

Hi Ivan,

I’ll try to take some time to have a look at this.

One question though: did you already try to use this on Mono ? Is it  
possible at all ?

– Thibaut

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [March 6, 2009, 12:25pm UTC](https://www.ruby-forum.com/t/please-test-ironrubymvc/162160/3 "2009-03-06T12:25:19Z")

</div>

The [ASP.NET](http://ASP.NET) MVC license explicitly forbids this. The mono guys have to  
reinvent that as well.

On Fri, Mar 6, 2009 at 11:26 AM, Thibaut BarrÃ¨re

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [March 6, 2009, 9:26pm UTC](https://www.ruby-forum.com/t/please-test-ironrubymvc/162160/4 "2009-03-06T21:26:02Z")

</div>

Ivan,

Thanks for doing this, it’s really awesome that you’ve taken initiative  
in this project!

There’s a way to put VS in ASCII mode … but I don’t remember how. I  
felt that pain when getting the initial version of ironrubymvc set up.

I’m working on a silverline port to [ASP.NET](http://ASP.NET) MVC, so I’ll be ramping up  
my work on this as well.

~js

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ivan Porto  
Carrero  
Sent: Friday, March 06, 2009 1:21 AM  
To: ironruby-core  
Subject: [Ironruby-core] please test ironrubymvc

Hi

I’m going to take this weekend to add some more error checking to  
IronRuby MVC and to create a readme with a quick sample.  
But as things stand I think you should have a usable version of IronRuby  
MVC currently in my github repo  
([GitHub - casualjim/ironrubymvc: IronRuby ASP.NET MVC otherwise known as ASP.NET MVC rubification](http://github.com/casualjim/ironrubymvc)).

I would love to see some bugs being found 🙂

So if you’re interested to help, please get the source and try to build  
an [ASP.NET](http://ASP.NET)[http://ASP.NET](http://ASP.NET) MVC application with ironruby or help me out  
by writing specs.

There is something pretty annoying though. When you’re in a C# project  
(like a library or an MVC project) and you create a text file. VS will  
help you out by adding a BOM to the file. Now IronRuby doesn’t know how  
to handle files like that.  
I realise you can do File - Save as - Save with encoding but that didn’t  
have the desired effect either. So in the end i created my ruby files  
with Notepad++ and added those to the IronRuby mvc project.

This wasn’t a problem earlier because I had created my own reader and  
script runner, and I just refactored to use StreamContentProviders from  
Microsoft.Scripting. As soon as I use the DLR infrastructure it starts  
complaining about the BOM’s.  
(Invalid character Ã¯ found).

I’d like to thank Jimmy for his advice.

Thanks  
Ivan

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [March 6, 2009, 10:29pm UTC](https://www.ruby-forum.com/t/please-test-ironrubymvc/162160/5 "2009-03-06T22:29:00Z")

</div>

I figure I’m already passing a streamcontentprovider. I can just pass  
one  
that reads the file and is a little bit more forgiving 🙂

I’d like to refactor now to a DLR implementation so that the guys from  
IronPython have an easier time plugging in their language.

I looked at improving the error handling but atm there is not that much  
information to be gotten from the exceptions, so I took it out again.

On Fri, Mar 6, 2009 at 8:59 PM, Jimmy S. \<

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [March 6, 2009, 11:01pm UTC](https://www.ruby-forum.com/t/please-test-ironrubymvc/162160/6 "2009-03-06T23:01:15Z")

</div>

Yeah, thatâ€™s pretty unfortunate. However, Mono needs to also reimplement  
System.Web.Routing, which is in .NET 3.5, and System.Web.Mvc depends on.  
So even if MVC was Ms-Pl, theyâ€™d still have work to do. Letâ€™s hope  
(at-least) MVC changes their license.

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ivan Porto  
Carrero  
Sent: Friday, March 06, 2009 3:24 AM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] please test ironrubymvc

The [ASP.NET](http://ASP.NET)[http://ASP.NET](http://ASP.NET) MVC license explicitly forbids this. The  
mono guys have to reinvent that as well.

On Fri, Mar 6, 2009 at 11:26 AM, Thibaut BarrÃ¨re  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
Hi Ivan,

I’ll try to take some time to have a look at this.

One question though: did you already try to use this on Mono ? Is it  
possible at all ?

– Thibaut

On Fri, Mar 6, 2009 at 10:20 AM, Ivan Porto C.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

> out by adding a BOM to the file. Now IronRuby doesn’t know how to handle  
> Thanks  
> Ivan
> 
> * * *
> 
> Ironruby-core mailing list  
> removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)
