Skip to content

Commit 6127d30

Browse files
dwilkiepablobm
authored andcommitted
Move pagination into partial
1 parent 92f6194 commit 6127d30

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%= paginate resources, param_name: '_page' %>

app/views/administrate/application/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ It renders the `_table` partial to display details about the resources.
4242
table_title: "page-title"
4343
) %>
4444

45-
<%= paginate resources, param_name: '_page' %>
45+
<%= render("pagination", resources: resources) %>
4646
</section>

0 commit comments

Comments
 (0)