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
- September 2011
- April 2011
- March 2011
- December 2010
- November 2010
- September 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- November 2009
- October 2009
- September 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- November 2008
- October 2008
- September 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- January 2008
- April 2007
- March 2007
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!

