awesome_print and Pry = Sane Rails Console

December 1, 2011 Programming , Rails

I recently found out about awesome_print so I gave it a try.

It lets you print objects very nicely, like the adjacent image shows.

Moreover, I am already using pry.

So, I can type something like this in the Rails console to print all the users:

cd User

Combining these two gems, I can now get the output in the image above like this:

cd Survey
ap first;

The beauty of this made me want to blog it. That is all.

blog comments powered by Disqus