Reloading a Rails App for console
Here’s something extremely useful:
Dispatcher.reset_application!
It’s the command that will reload all your model classes when your using the console and have made a change to a class. Prior to this I’d been closing the window and restarting the console to be able to test changes - what a pia.
Post a Comment