Note to Self: Reloading my Rails App Within the Console

Posted by ryan
at 7:14 AM on Friday, June 02, 2006

I’m posting this more as a personal reminder than anything else – so go elsewhere if you’re looking for true wisdom:

How to reload my controllers and model while running in Rails’ handy script/console utility:

reload!

or

Dispatcher.reset_application!

The differences between the two I do not yet know (and now I do – thanks to Curt’s comment – reload! just calls Dispatcher.reset_application!)

References: Caveats:

tags: rubyonrails,rails

Comments

Leave a response

  1. JacksonMay 24, 2006 @ 07:27 AM
    That was helpful. Thanks. That has been one of those things I always mean to look up as soon as I am done.
  2. CurtMay 24, 2006 @ 10:16 AM
    reload! just calls Dispatcher.reset_application!, so it's just a bit less typing. "Here's the method definition in trunk":http://dev.rubyonrails.org/svn/rails/trunk/railties/lib/console_app.rb