[Ironruby-core] Question about Ivan Porto carrero MVC Sample

Ivan Porto Carrero ivan at flanders.co.nz
Tue Jun 23 15:33:38 EDT 2009


Sqlite lib:
http://sourceforge.net/project/showfiles.php?group_id=132486&package_id=145568

You need to have a reference to the ironrubymvc library and compile the
asp.net mvc project once from then on things should start to work.


Getting started

   1. Install ASP.NET MVC (link?)
   2. Create a new ASP.NET MVC project in Visual Studio
   3. Add a reference to System.Web.Mvc.IronRuby.dll
   4.

   Open Global.asax.cs and ...

   // add this to your usings using System.Web.Mvc;

   // make the subclass of "MvcApplication" be "RubyMvcApplication"
   namespace MyIronRubyMvcApp {

   public class MvcApplication : RubyMvcApplication {

   }

   }
   5.

   Create Routes.rb and define a default route:

   $routes.ignore_route "{resource}.axd/{*pathInfo}" $routes.map_route
   "default", "{controller}/{action}/{id}", :controller => 'Home', :action =>
   'index', :id => ''

---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
GSM: +32.486.787.582
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Tue, Jun 23, 2009 at 9:21 PM, Mohammad Azam <lists at ruby-forum.com> wrote:

> Is there any link between the IronRubyMvcLibrary?
>
> Do I need that library?
>
> How will the application know to load the routes from routes.rb file?
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090623/3b55c25f/attachment.html>


More information about the Ironruby-core mailing list