So if you’ve ever tested changes to a Ruby on Rails model in the script/console, it can be a pain having to completely quit and restart the application each time you make an adjustment. Instead you can use the reload! command
So this:
reload!
Acts as if you just did this:
exit script/console
So not only does it require one less command, but you can still use all previously defined variables. Awesome!
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.