I just checked in a somewhat working implementation of <a href="http://asp.net">asp.net</a> mvc and IronRuby.<br>It is also much faster than I expected. There is no support for filters and the likes yet but you should be able to define controllers.<br>
It should also be able to recognize controller actions and controller files by using underscored notation or pascal casing. <br><br>
<br><br><div class="gmail_quote">On Fri, Jan 30, 2009 at 7:30 PM, Ivan Porto Carrero <span dir="ltr"><<a href="mailto:ivan@flanders.co.nz">ivan@flanders.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yep I forked your project. I don't have it running yet.. and i did get the source code of the <a href="http://asp.net" target="_blank">asp.net</a> mvc RC1.<br>Indeed my first goal was to take it to the state it was before.. i think that is the most basic implementation possible. When that works I did want to flesh it out so that it knows how to handle urls with other characters than just alphanumeric. <br>
<br>I'm also thinking to replace the custom attributes with class methods like I rails uses for filters etc. <br><div class="Ih2E3d"><br clear="all"><br><br>
<br><br></div><div><div></div><div class="Wj3C7c"><div class="gmail_quote">On Fri, Jan 30, 2009 at 6:37 PM, Jimmy Schementi <span dir="ltr"><<a href="mailto:Jimmy.Schementi@microsoft.com" target="_blank">Jimmy.Schementi@microsoft.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#FFFFFF"><div>Did you fork my ironrubymvc project? If so, i'd love to pull any changes you made into it. However, it sounds like you got it to the state it was in before, just updating the ironruby bits? That <a href="http://System.Func/Action" target="_blank">System.Func/Action</a> clash is a known issue; my suggested work-around for now is to not have ironrubymvc depend on system.core.</div>
<div><br></div><div>I'll get on phil to merge his changes as well, and then well have a up-to-date mvc integration :)<br><br>~Jimmy<div>Sent from my phone</div></div><div><div></div><div><div><br>On Jan 30, 2009, at 3:55 AM, "Ivan Porto Carrero" <<a href="mailto:ivan@flanders.co.nz" target="_blank">ivan@flanders.co.nz</a>> wrote:<br>
<br></div><div></div><blockquote type="cite"><div>Hi <div><br></div><div>I think I can have a very basic version of ironruby mvc going over the weekend.. that will probably be without support for things like filters etc. yet.. but you should be able to define a controller and actions in ironruby. </div>
<div>I haven't looked at the view engine yet and I'm unclear as to which strategy to use because if ERB works properly then that seem like a great fit to me or should I keep the view engine that is in the current repository and improve on that one iteratively</div>
<div><br></div><div>If there are more people interested in using ironruby with <a href="http://asp.net" target="_blank">asp.net</a> mvc I do have a good idea of what work is involved and how hard it is. There is a fair amount of work involved that means I would need a couple of spikes to get it all going. To make the controllers work etc. I think I will have to define new descriptors that use the the ironruby infrastructure.</div>
<div>Does anybody know if the descriptors in the <a href="http://asp.net" target="_blank">asp.net</a> mvc framework are currently set in stone or if they are still pretty volatile, that is the biggest risk for the controller implementation IMHO?<br>
</div><div><br></div><div>Also there is a conflict between 2 types in the System namespace. System.Func is defined in 2 places. I aliased the System.Core assembly and am using the type from System.Core. This does give some weird results because apparently System.Func<>, System.Core,..,... and System.Func<>, System.Core aren't the same when the mvc framework checks for the types of the parameter. Any tips to get around this? Am I doing something wrong?</div>
<div><br></div><div>I'll integrate Andrew Peters' inflector to take care of pascal casing, snake casing and pluralisations etc. unless there are objections.</div><div><br></div><div>It would be good to get some kind of indication/document of what is important from the <a href="http://asp.net" target="_blank">asp.net</a>, <a href="http://asp.net" target="_blank">asp.net</a> mvc and the ironruby teams so that I can take that into account when I'm coding this thing up.</div>
<div><br></div><div>Cheers
</div><div>Ivan</div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><div><br><span>Ironruby-core mailing list</span><br><span><a href="mailto:Ironruby-core@rubyforge.org" target="_blank">Ironruby-core@rubyforge.org</a></span><br>
<span><a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a></span><br></div></div></blockquote></div><br>_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org" target="_blank">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>