I’ve tried setting up Pagination between blog posts but have been unable to successfully do so. The code I’ve used is pretty much identical to what I’ve pasted below.
I was able to create a list of the 5 most recent articles.
Anyone have an idea of why this pagination method wouldn’t be working?
<% if current_page.previous_article %>
<%= link_to current_page.previous_article.title, current_page.previous_article %>
<% end%>
<% if current_page.next_article %>
<div id="next-post">
<%= link_to current_page.next_article.title, current_page.next_article %>
</div>
<% end%>
</div>