in the console, I know I can reload a file with load ‘foo.rb’. Is
there a way to reload everything, as if I typed quit and script/
console, but without losing the history (I type slow). I tried
reload! but that doesn’t do it. thanks
reload! should work. What’s the problem when you do that?
I made changes in vendor/plugins but they’re not loaded. Changes in
models DO get reloaded
On 17 Sep 2008, at 15:27, rubynuby wrote:
I made changes in vendor/plugins but they’re not loaded. Changes in
models DO get reloaded
By default plugins aren’t marked as reloadable (in the same way that
the rails framework isn’t reloaded). You can change this by fiddling
with Dependencies.load_once_paths or config.reload_plugins
Fred
rubynuby wrote:
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~–~—
you can use config.load_paths<<“#{RAILS_ROOT}/app/somefolder/”
and then reload! within ruby/script console will reload the changed
files in
those directories.
side note
config.load_paths is deprecated so use config.autoload_paths instead
View this message in context:
http://old.nabble.com/how-to-reload-everything-in-script-console-tp19531363p30408204.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.