I am using pagination_links to put simple pagination on my page 10
results at a time. I am also wanting to put ‘page:’ in front of the
pagination numbers. Only if there is less than 10 results the
pagination doesn’t show so I don’t want ‘page:’ to be there either.
This is what I’ve tried, but I thought there should be a way to do it in
the html_options in the method - though I can’t find it in the Rdocs.
<% if (pagination_links)%>
<%= pagination_links(@news_item_pages) %>