Isn’t it nice how Rails server automatically reloads your code before each request in the development? Wouldn’t it be
nice if Rails console worked the same way? Sure, you can manually call
reload!, but gems like
active_reload – or
Rails 3.2 itself – make reloading a near no-op most of the time, so we really don’t have to be so stingy about reloading.
Here’s how you can get IRB to reload your code automatically…