You need to initialize FooTable in _leave_detail.html.erb
<table class='my_footable' data-page-navigation=".pagination" data-filter="#filter" ...>
...
</table>
<!-- don't forget to initialize after </table>-tag -->
<script type="text/javascript">
$('.my_footable').footable();
</script>
Please pay attention to match in <table class='my_footable'>
and $('.my_footable').footable()
UPD: Just finished wrapping FooTable V2 branch in FooTable-rails. Just add to your Gemfile:
gem 'footable-rails', '~> 0.0.2', git: 'https://github.com/olegkurchin/FooTable-rails'
Then run in root folder
$ gem uninstall footable-rails
$ bundle install
and restart Rails server