Yes, there's additional C# code involved which uses the DLR hosting interfaces.

For the sample that was shown at TechEd, code in Global.asax.cs executed 
"routes.rb".  This set up handlers to point to Ruby-based controllers.  A C# 
RubyController class served both to delegate the request to the Ruby-based 
controller and to serve as a base class for it.  A set of classes fronted by 
"RubyViewEngine" were used to read an .rhtml file and execute it through 
IronRuby.

All of this except the code in Global.asax.cs was abstracted out into a 
separate library.  The only other app-specific code written in C# for the demo 
was the database access code.  (And this was not because we couldn't create 
models in Ruby.)

Naturally, the sample that's made available with CTP 4 may look totally 
different :).


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Hall
Sent: Thursday, June 19, 2008 4:57 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Asp.Net MVC with IronRuby - How does it work?

Hi team,

I'm just trying to put together some cool samples for a DLR user group
session i'm doing next week.  Sadly, I can't do MVC + IronRuby because
Preview 4 isn't out, however I was wondering if you could provide some
technical insight into how MVC knows about IronRuby?

Does the framework host the DLR in order to make this happen? Or is it
interacting in some other way?

Also, if anyone knows any cool demos around IronRuby (apart from
silverlight integration and the actual language) please let me know :)

Thanks

Ben
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to