[Ironruby-core] Problem with IronRubyMvc and IR 0.9.1
Tomas.Matousek at microsoft.com
Tue Oct 13 12:29:58 EDT 2009
“The extension method RequireFile for ruby does that respect when I would redefine the require statement to keep track of classes contained in a file and reload them on each request when compiled in debug mode?”
No, there is no dynamic invocation of “require” method going on. If you need to call “require” you can use Engine.Operations.InvokeMember(nil, “require”, fileName);
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero
Sent: Tuesday, October 13, 2009 4:37 AM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1
I've updated the ironruby libraries to what's in github currently.
I pulled in your changes Immo but when i compiled the app I couldn't serve any pages up it complained about not being able to find the correct IronRuby yada yada.
Anyway the fix I had in mind was removing 1 line of code and reloading works again. The thing is that now if you update a controller file you need to restart the web application.
Does windows have an equivalent of touch ? because doing that could be as easy as touch web.config
otherwise I use the following cheat I add a space in web.config so it hashes differently and save the web.config file.
Thanks for fixing the tests :) I'll see if I can cherry-pick your changes later.
The extension method RequireFile for ruby does that respect when I would redefine the require statement to keep track of classes contained in a file and reload them on each request when compiled in debug mode?
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Author of IronRuby in Action (http://manning.com/carrero)
On Mon, Oct 12, 2009 at 2:09 AM, Immo Wache <lists at ruby-forum.com<mailto:lists at ruby-forum.com>> wrote:
be imressed about your prompt reply. Good to read you can reproduce the
To be honest, I fiddeled around with the code some nights now, so I
don't expect a solution from today to now. Meanwhile I learned (Almost
Everything I never ever wanted to know) about Ruby, and it seams now to
me that Ruby really dislike the idea to remove something which is global
Meanwhile I'm listen to silly http://www.youtube.com/watch?v=tE17zPKfhYs
to keep up my mood and try to get the old deactivated project
IronRubyMvcLibrary.Tests from your master running.
Wish you all best success for a solution,
Ivan Porto carrero wrote:
> oic.. yes that is my fault
> I have to change the way I deal with requiring files and clearing out
> I'll go for a load strategy instead of removing them from the Globals
> collection, but won't be today though.
> 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<mailto:Ironruby-core at rubyforge.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core