When running a rails console in iterm2 and querying the database, it spits out the results of the query in a big, comma-delimited blob. Is there a good plugin to format the output of a console query in a little more readable fashion?
Asked
Active
Viewed 922 times
1 Answers
2
Maybe pretty-printing can help here? I currently use awesome_print.
So, instead of
User.all # or whatever another query you're running
you will write this
ap User.all
And you should get much nicer results.

Sergio Tulentsev
- 226,338
- 43
- 373
- 367
-
Could use a little help... I installed the gem into the root directory, but I'm not sure where I need to require it in order to use it in the console. – Bob Ralian Jul 13 '12 at 00:29
-
Yes, you need to require it. `require 'awesome_print'` – Sergio Tulentsev Jul 13 '12 at 06:09