Rails being the wonderful framework that it is, we can execute
rails console from the command-line to enter IRB with our Rails application preloaded.
This allows us to interactively test our code by doing things like making sure our models have the correct associations setup or for quickly creating new records. All this without clicking around in the browser. Okay, probably old news...
Well, up till now, every time I made some change in the application code and wanted to test the change in the Rails console, I'd exit the Rails console and rerun
rails console just to have the new changes take effect.
Fool that I was!
Instead, we can just run
reload! from inside the Rails console to have the new changes be loaded automatically without having to exit and re-enter.
Doesn't that make you smile?