Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

script/console reload models (See related posts)

Great time saver... found at http://habtm.com/articles/2005/10/04/script-console-reload-models

$ script/console
Loading development environment.
>> ..do stuff here..

then modify your model code..
then..

>> Dispatcher.reset_application!

Comments on this post

jcasimir posts on May 30, 2006 at 02:30
To create a command "reset" that will do this for you, create/open .irbrc in your home directory and add the following:

def reset
  Dispatcher.reset_application!
end

You need to create an account or log in to post comments to this site.


Related Posts