Console does not reload

I start a ruby on rails console. First I execute "require ‘managers/
x_manager’ then I do something with the loaded class. After changing
the source of the class it is not reloaded. How do I activate the
changes without restarting the console?

Thanks,
Stefan

I wrote reload! and it did reloaded the configuration but not the
edited source file.

“reload!” only reloads controllers, models, routes and similar often-
changing stuff. It does not reload everything - it depends on the
directories and internal settings like ‘load_paths’ and
‘load_once_paths’. For instance, plugin code is not reloaded.

Where is the source file you want reloaded? Try this:

module MyStuff
unloadable

rest of my code …

end

The “unloadable” method explicitly tells Dependencies that this module
is unloadable.


M

On Thu, Mar 01, 2007 at 04:04:24AM -0800, stemey wrote :

How do I activate the changes without restarting the console?

Try reload!


,========================.
| Pierre-Alexandre M. |
| email : [email protected] |
`========================’

Try >reload!

Regards,
Dave


Information and Educational Technology
Kwantlen University College - 604-599-2120
“So powerful is the light of unity that it can illuminate the whole
earth.” --Bahá'u’lláh

“stemey” [email protected]
Sent by: [email protected]
01/03/2007 04:04 AM
Please respond to
[email protected]

To
“Ruby on Rails: Talk” [email protected]
cc

Subject
[Rails] console does not reload

I start a ruby on rails console. First I execute "require ‘managers/
x_manager’ then I do something with the loaded class. After changing
the source of the class it is not reloaded. How do I activate the
changes without restarting the console?

Thanks,
Stefan

I have the same issue , did you find a solution ?