I am trying to use footable in my rails application.But I am unable to implement pagination with my dynamic table data.
Here is my code
<table class="footable table table-stripped" data-page-size="10" data-filter=#filter>
<thead>
<tr>
<th>Organization Name</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<%@organizations.each do |org|%>
<tr class="gradeX">
<td><%=org.name%></td>
<td><%=org.type%></td>
</tr>
<%end%>
</tbody>
<tfoot>
<tr>
<td colspan="5">
<ul class="pagination pull-right">
<%=paginate @organizations%>
</ul>
</td>
</tr>
</tfoot>
</table>
<script type="text/javascript">
$(function() {
alert(); //testing
$('.footable').footable();
});
</script>
But It shows only 10 records though it contains upto 45 in table(shows maximum of 10 records even changing data-page-size).
Help me If anyone finds this issue,Thaks In advance.