Last Updated: June 17, 2024
·
1.359K
· cardsfanbob

Prettier Rails console output

If you are using RVM, install the awesome_print gem globally:

rvm @global do gem install awesome_print
rvm.reload

Edit or create a ~/.irbrc and add the following two lines:

require "awesome_print"
AwesomePrint.irb!

Open up a rails console and enjoy :)