TL;DR:
- awesome_print and table_print gems are great tools for enhancing your
rails console
experience
Go to your Gemfile and add this two lines.
This gives you ap
and tp
methods inside your rails console.
In newer rails versions (Rails v5 and above) the awesome_print is probably an
overkill. Example output using Rails 5.2
Example output using awesome_print
Example output of table_print gem. Note that you could call tp Task.first(5)
without column names.