Add pagination via kaminari

This commit is contained in:
Andreas Haller 2015-04-27 23:14:48 +02:00
parent f71c083722
commit 40eeac2021
13 changed files with 57 additions and 5 deletions

View file

@ -0,0 +1,4 @@
li{class="#{'current' if page.current?}"}
= link_to(page, page.current? ? '#' : url,
{ :remote => remote,
:rel => page.next? ? 'next' : page.prev? ? 'prev' : nil })