I really like table cloth.
This project is some extra stuff for table_cloth.
gem 'extra_doilies'
gets you:
class BookTable < TableCloth::Base
column :"#", using: ExtraDoilies::CounterColumn
column :title, using: ExtraDoilies::LinkedColumn
column :author, using: ExtraDoilies::LinkedAssociationColumn
This will get you a numbered column, a title column (linked to the ActiveModel object), and a column for author, with links to that author. Woo!
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request