how to reload everything in script/console

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

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:

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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com 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