cldwalker / hirb

A mini view framework for console/irb that's easy to use, even while under its influence. Console goodies include a no-wrap table, auto-pager, tree and menu.
http://tagaholic.me/hirb/
MIT License
1.65k stars 72 forks source link

Vertical Table for ActiveResource? #95

Closed jessenovu closed 9 years ago

jessenovu commented 9 years ago

I prefer to use Hirb to output ActiveRecord rows vertically. This is a lot like MySQL's \G vertical formatter: http://forums.mysql.com/read.php?108,231614

To make this happen, I use the following hirb.conf:

  "ActiveRecord::Base":
    :class: auto_table
    :ancestor: true
    :options:
      :vertical: true

Is there a way to get the same vertical output for my ActiveResource objects? I tried substituting "ActiveRecord::Base" for "ActiveResource::Base", but the output is less than inspiring.

cldwalker commented 9 years ago

Thanks for reporting your issue! This is one of my 8 active issues. Use that link to check how soon your issue will be answered. Don't forget to check your issue against this project's CONTRIBUTING.md. Cheers.

cldwalker commented 9 years ago

Hi. Hirb doesn't ship with ActiveResource support. You can write your own dynamic view using activerecord as an example. Closing but feel free to ping here if you run into issues building it