Skip to content

table_for is a rails table builder given an ActiveRecord

License

Notifications You must be signed in to change notification settings

MarcReniu/ct_table_for

 
 

Repository files navigation

Rails Responsive Table

Rails Responsive Table is a rails table builder for an ActiveRecord collection.

Requirements

  • Twitter Bootstrap 3.0+
  • Fontawesome
  • include media

Installation

Add it to your Gemfile:

gem 'ct_table_for', '~> 0.1.6'

Then:

bundle

Then require the CSS in your application.css file:

/*
 *= require table_for
 */

or in sass

@import "table_for"

Usage

To get started, just use the table_for_for helper. Here's an example:

<%= table_for Model, @collection %>

Development

To develop the Gem, clone this repo and in your Rails Test application edit the Gemfile and edit the path to your local repo:

gem 'table_for', path: '/home/user/path/to/table_for'

Contributing

Bug reports and pull requests are welcome on GitHub. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

table_for is Copyright © 2017 CodiTramuntana SL. It is free software, and may be redistributed under the terms specified in the LICENSE file.

The gem is available as open source under the terms of the MIT License.

About CodiTramuntana

CodiTramuntana's Logo

Maintained by CodiTramuntana.

The names and logos for CodiTramuntana are trademarks of CodiTramuntana SL.

We love open source software!

About

table_for is a rails table builder given an ActiveRecord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 92.1%
  • CSS 7.9%