Checkboxes only work on first page - Datatables, rails
<p><strong>Senario</strong>: So basically I'm using DataTables and have checkboxes on its first column. My DataTables have multiple pages (pagination).</p>

<p><strong>The Problem:</strong> When I check a few boxes on a page (could be any page), AND also check a few on OTHER pages. </p>

<blockquote>
  <p>The results only gets saved if I am on the current page</p>
</blockquote>

<p>I'm quite new to datatables/javascript and can't really figure out how to solve this issue.</p>

<pre><code>$('#formDataTable').DataTable({
         responsive: true,
         autoWidth: true,
         "bFilter": true,
         "bRetrieve": true,
         "bInfo": true,
         "sPageFirst": false,
         "sPageLast": false,
});
</code></pre>

<p>I have read these SO pages. <a href="https://stackoverflow.com/questions/30723911/checkboxes-will-only-work-on-current-pagination-page-in-jquery-datatables?answertab=oldest#tab-top">Checkboxes will only work on current pagination page in jQuery datatables</a>
Link is currently dead to this question -> <a href="https://stackoverflow.com/questions/6020574/pagination-with-selected-check-boxes-checkboxes-will-only-work-on-current-pagin">Pagination with selected check boxes. Checkboxes will only work on current pagination page. jQuery datatables</a></p>