This is a gem for Rails >= 3.1 applications. It provides all the basic DataTables files, but not (yet) the extras.
First, put the gem in your Gemfile (gem 'jquery-datatables-rails' , :git => 'git://github.com/rweng/jquery-datatables-rails.git'
) and run bundle install
After installing it you can require it in your application.js file with \\= require jquery.dataTables
, or use the images and stylesheets in the dataTables directory: <%= image_tag 'dataTables/sortBoth.png' %>