Ruby on Rails: script/console reload!

Somebody just showed me this on the #rubyonrails channel over on freenode… when you make changes to your model objects, you can reload the changes inside the script/console by just doing this:

?> ?> reload! Reloading… => [Article, User, ApplicationController] >>

Rather useful, I’d say. You can also load up ruby code in an external file by using the “load” command.

3 Responses to “Ruby on Rails: script/console reload!”

  1. house9 Says:

    Thanks!

  2. dimented1 Says:

    This is most useful; thanks!

  3. kamas dofus Says:

    good post!

Leave a Reply