Rails 4: Server side processing for datatable
<p>I have a large data table and I am trying to use <a href="http://datatables.net/examples/server_side/simple.html" rel="nofollow">DataTables</a> to organize the data. I want to use their server side processing for pagination, search, etc but I'm not sure how.  Their docs show:</p>

<pre><code>$('#example').dataTable( {
  "serverSide": true,
  "ajax": "file.php" // or "ajax": "data.json"
});
</code></pre>

<p>but I am not sure what to pass as the file for my table?  How to I pass my entire table?  I'll happily give more information if my question is unclear.</p>