This gem packages the jQuery DataTables TableTools plugin for easy use with the Rails 3.1+ asset pipleine.
- Add
gem 'jquery-datatables-tabletools-rails'
to the assets group in your Gemfile and runbundle install
. - Add the JavaScript to
application.js
:
//= require dataTables/jquery.dataTables.TableTools
- Add the stylesheets to
application.css
:
*= require dataTables/jquery.dataTables.TableTools