kaminari remote true

This commit is contained in:
Adrian Hinz 2019-05-15 17:22:06 +02:00
parent 2bf1a0f263
commit bb948f9644
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
$('#ajax_list').html("<%= escape_javascript(render('/admin/courses/partials/courses')) %>");

View File

@ -22,5 +22,5 @@
<% end %>
</tbody>
</table>
<%= paginate @courses, theme: 'twitter-bootstrap-4', pagination_class: 'justify-content-center' %>
<%= paginate @courses, remote: true, theme: 'twitter-bootstrap-4', pagination_class: 'justify-content-center' %>
<% end %>