This is how the it has been used here:
http://railscasts.com/episodes/340-datatables