1
0
Fork 0
mirror of https://github.com/mcasimir/kaminari-bootstrap.git synced 2022-11-09 13:46:52 -05:00

Fix a bug

Fix :undefined "total_pages" in kaminari helper paginator
kaminari (0.13.0)
This commit is contained in:
tomorrownull 2013-04-06 12:56:46 +08:00
parent d28af1aed6
commit cf265f69cb

View file

@ -8,7 +8,6 @@
-%>
<%= paginator.render do -%>
<nav class="pagination">
<% if total_pages > 0 -%>
<ul>
<%= first_page_tag unless current_page.first? %>
<%= prev_page_tag unless current_page.first? %>
@ -22,6 +21,5 @@
<%= next_page_tag unless current_page.last? %>
<%= last_page_tag unless current_page.last? %>
</ul>
<% end -%>
</nav>
<% end -%>