01Jun
script/console Reload Models
1
If you are one of those Rails applications developers, then you would have
used this command before:
ruby script/console
It is very nice and gives you the ability to load your environment and try
it as you wish, but what if you changed anything in the application models? You
will find that the console isn’t aware of these changes at all!
So what can you do to make it aware of your changes?
Here it is; just run this command in your console:
Dispatcher.reset_application!
Now you can try those new changes you made in your models.
Comments
1
james
wrote: on Thursday, September 04, 2008:
Post a Comment
eSpace podcast Prodcast
Archive
Latest Comments
- SpectraMind Commented on Egypt Wins UK's National Outsourcing Association Award
- Rofaida Awad Commented on Go Egypt Go!
- Different Mike Commented on Only idiots change their iPhone root password!
- Mike Commented on Only idiots change their iPhone root password!
- smile Commented on Only idiots change their iPhone root password!

