0

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?

Bob Ralian
  • 1,949
  • 1
  • 20
  • 29

1 Answers1

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