Rails Console does not reload Follow
Hi,
I've trying RubyMine for a few days and I can't get the console working properly. Everytime I make any change, for example adding a new validator, I have to open a new console since reload doesn't seem to work. I do know that rails doesn't re-initialize the objects that already exist so that's not the problem. I'm not sure if it's a bug, some misconfiguration or just me being stupid but it's quite annoying start a new console everytime.
BR
Please sign in to leave a comment.
Hi,
the problem you describe does look like a bug for me, but before making the final decision some questions to complete the picture:
Thanks in advance, Oleg.
Thanks for the quick reply:
4.0.3
It means that aparently works but doesn't seem to have any effect. The output is the expected
>> reload!
Reloading...
true
After this I expected to have all my new code available but is not. As I said adding any new validation or a simple "puts" inside a method doesn't work until I open a new console.
It is, yes.
ruby 1.9.3 and rails 3.2.3
OSX 10.7.4 (Lion)
Anything special about file system you use to store the project? (symlinks, compression, etc...)
Thanks, Oleg.
not really, just the regular stuff.
Could you, please, check if the problem is reproducible with the latest 4.5 EAP build.
Thanks in advance, Oleg.
Hi,
what rails environment (development, test, production) do you use to run rails console?
I've just tried with test envirnoment and reload! doesn't work, but it doesn't work even when I run console in command line, so, most likely,
this is the way reload! should work.
In development everything works fine for me.
Hope this helps, Oleg.
You are completely right! I was using test environment and as you said it only works in development even in command line. Thanks a lot!
BR