# TableHelp [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Gem Version](https://badge.fury.io/rb/table_help.svg)](https://badge.fury.io/rb/table_help) [![Build Status](https://travis-ci.org/yhirano55/table_help.svg?branch=master)](https://travis-ci.org/yhirano55/table_help) Provide helper methods to build collection or resource tables for Rails 5. `table_for` and `attributes_table_for` helper methods implemented in `TableHelp` are inspired by [ActiveAdmin](https://github.com/activeadmin/activeadmin). ## Installation Add this line to your application's Gemfile: ```ruby gem 'table_help' ``` And then execute: $ bundle Or install it yourself as: $ gem install table_help ## Usage ### Collection ```html+erb <%= table_for @articles do |t| %> <% t.column :title %> <% t.column :body do |article| %> <%= truncate(article.body) %> <% end %> <% t.column :created_at %> <% t.column :updated_at %> <% t.column do |article| %>