Wednesday, March 26, 2008

script/console reload models

if you are one of the Rails applications developer, 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 him aware of your changes?

here it is, just run this command in your console

Now you can try the new changes you made in your models