Skip to content


Test Model Changes in Script/Console Without Exiting

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!

Posted in Ruby On Rails, Web Development. Tagged with , , , , , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.