FooTable-rails integrates FooTable in Rails assets pipeline. This is fork of V2-branch
- Add to Gemfile
gem 'footable-rails'
- Add to 'application.css' before *= require tree
*= require footable-rails
- Add to 'application.js' before //= require tree
//= require footable-rails
- 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>