Categories: None [Edit]

table_display

https://rubygems.org/gems/table_display
https://github.com/willbryant/table_display
Adds support for displaying your ActiveRecord tables, named scopes, collections, or plain arrays in a table view when working in rails console, shell, or email template. Enumerable#to_table_display returns the printable strings; Object#pt calls #to_table_display on its first argument and puts out the result. Columns you haven't loaded (eg. from using :select) are omitted, and derived/calculated columns (eg. again, from using :select) are added. Both #to_table_display and Object#pt methods take :only, :except, and :methods which work like the #to_xml method to change what attributes/methods are output. The normal output uses #inspect on the data values to make them printable, so you can see what type the values had. When that's inconvenient or you'd prefer direct display, you can pass the option :inspect => false to disable inspection.

Total

Ranking: 14,481 of 188,802
Downloads: 141,189

Daily

Ranking: 20,103 of 188,779
Downloads: 5

Depended by

RankDownloadsName

Depends on

RankDownloadsName
101,202,966,022rake
36741,279,806activerecord
276170,987,282sqlite3
62283,100,011test-unit
68679,395,218ostruct

Owners

#GravatarHandle
1iconwillbryant