RailsCasts Pro episodes are now free!

Learn more or hide this

Rodrigo Sanguanini's Profile

GitHub User: rodrigokiller

Site: http://www.killerskull.com

Comments by Rodrigo Sanguanini

Avatar

Wow. There is a lot of JS code in there.
Easily you can use just it:

$(document).ready(function() {
$('#example').dataTable();
});

Where #example is the ID of the table.
Remember to use dataTable as a class, and to read the documentantion:

https://datatables.net/