hirb - irb on the good stuff
more rails development means more time in the script/console and irb, but it can quickly become a headache with doing ugly things like returning activerecord objects. for that, hirb’s table view is a lifesaver. check out this example output =>
irb>> Tag.last
+-----+-------------------------+---------------+-----------+-----------+-------+
| id | created_at | name | namespace | predicate | value |
+-----+-------------------------+---------------+-----------+-----------+-------+
| 907 | 2009-03-06 21:10:41 UTC | gem:tags=yaml | gem | tags | yaml |
+-----+-------------------------+---------------+-----------+-----------+-------+
1 row in set
=>true
if you want to get more snazzy, you can define your own views for a more custom output. git it at hirb’s github page.
to enable hirb by default in any local rails application, add this to your ~/.irbrc file =>
if ENV['RAILS_ENV']
require 'rubygems'
require 'hirb'
Hirb.enable
end