Title: Ruby on Rails: Reload Script/Console Without Restarting Post by: Mark David on March 16, 2007, 02:05:06 PM Ruby on Rails: Reload Script/Console Without Restarting
When you are testing your rails application using script/console, you have to stop and start the console to test changes to your model objects. This recipe shows you the easy way to reload the console. If you are using windows, you start the console by using this command: Code: ruby script\console Linux: Code: ./script/console Just use the following command whenever you make changes to your model objects: Code: reload! Here's an example: Code: ?> reload! |