[Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

Ivan Porto Carrero ivan at flanders.co.nz
Sun Oct 11 14:39:47 EDT 2009


I use an ironruby built on 28/09/2009 that is the one in the github repo if
you build ironruby mvc. I can see the Home bpage of the test site.

Did you build ironruby mvc from source recently?

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



On Sun, Oct 11, 2009 at 8:19 PM, Immo Wache <lists at ruby-forum.com> wrote:

> Hi,
> tried to get running casualjim/ironrubymvc master from github to work.
> (I'm about to write a IronRuby MVC plugin for OpenSource CMS Umbraco
> with this, see: http://www.umbraco.org)
>
> Problem is calling a controller more than once.
>
> With IR 0.9.0 it worked quite well. But now when I recall the same
> controller url (eg. /Home) I get error "unknown member: HomeController".
>
> Searching the code I found:
>
> 1. Error comes from RubyEngine.GetGlobalVariable() for "HomeController"
>
> 2. Cause for this seams to be the before executed method call to
> RubyEngine.RemoveClassFromGlobals()
>
> I tried to comment out call to 2. This works better, but the
> HomeController now adds all Filter methods again and again, everytime I
> call the controller.
> So I tried around some hours to find out what's going on and for a
> better way to remove the HomeController from the IronRuby engine global
> scope but without any success.
>
> Any ideas to fix this? Immo
> --
> 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/20091011/86346f1b/attachment.html>


More information about the Ironruby-core mailing list