Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 762 Bytes

README.md

File metadata and controls

34 lines (29 loc) · 762 Bytes

FooTable-rails

FooTable-rails integrates FooTable in Rails assets pipeline. This is fork of V2-branch

  1. Add to Gemfile
gem 'footable-rails'
  1. Add to 'application.css' before *= require tree
*= require footable-rails
  1. Add to 'application.js' before //= require tree
//= require footable-rails
  1. Initialize FooTable! There should be a match between table class "my_footable" and ".my_footable"
<table class='my_footable' data-page-navigation=".pagination" data-filter="#filter" ...>
  ...
</table>
<!-- don't forget to initialize after </table>-tag -->
<script type="text/javascript">
    $(function () {
        $('.my_footable').footable();
    });
</script>