[Ironruby-core] Problem with IronRubyMvc and IR 0.9.1

Ivan Porto Carrero ivan at flanders.co.nz
Wed Oct 14 05:08:13 EDT 2009

I can check that in becuase that require is working for me now. I didn't use
the way Tomas suggested because that didn't work for me either. It
complained about the scope not being the global scope or the global scope
being empty.
I just execute a script. This fixes your issue but will require you to
restart the application to pick up any changes at this moment.
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 Wed, Oct 14, 2009 at 10:51 AM, Immo Wache <lists at ruby-forum.com> wrote:

> Hi Ivan,
> I see you have alot to do with your book and things. Neverless thank you
> for your help. May be I can support you in my issue with help of others
> from this forum.
> Meanwhile I managed to get the tip from Tomas working by execute a plain
> Ruby script (I know its not a professional solution):
>  string scriptPath = "require '" + PathProvider.MapPath(path) + "'";
>  Engine.ExecuteScript(scriptPath, CurrentScope));
> This works much betten than before:
> 1. When the controller is called first time,
>   the HomeController.rb script is executed.
> 2. When the controller is called again, the script
>   will not executed again. This resolves perfect
>   the "Filter adding" problem.
> 3. When I modify the HomeController.rb script,
>   the script will not be executed again. To get it
>   executed, I need to touch web.config/Restart ASP.NET.
> Issue No. 3 is not perfect to me, because I'm about to write an IronRuby
> MVC  extention module for Umbraco CMS. The CMS backend developer should
> be able to modify ruby scripts via web interface, and restart ASP.NET
> takes a lot of time because the CMS has a bunch of assemblies to reload
> which takes almost 30 sec. on my dev IIS.
> Neverless I will put the modification to my branch, with this I'm be
> able to carry on with my own extention module.
> BTW It would be real great, if anyone has a tip to my
> "Engine.Operations.InvokeMember(" problem above.
> Greetings, Immo
> Ivan Porto carrero wrote:
> > Hi Immo,
> > I've been able to merge your changes, will push them later.
> >
> > I'll see what I can do about reloading, but can't promise anything as I
> > don't have a lot of time to spend on this.
> > ---
> > Met vriendelijke groeten - Best regards - Salutations
> > Ivan Porto Carrero
> --
> 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/20091014/ac8193e5/attachment.html>

More information about the Ironruby-core mailing list