_page.html.erb 298 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 <% if page.current? %> <li class='active'> <%= content_tag :a, page, remote: remote, rel: (page.next? ? 'next' : (page.prev? ? 'prev' : nil)) %> </li> <% else %> <li> <%= link_to page, url, remote: remote, rel: (page.next? ? 'next' : (page.prev? ? 'prev' : nil)) %> </li> <% end %>