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)%>
Pages:
<%end%>
<%= pagination_links(@news_item_pages) %>
Cheers,
Jason
Jason [email protected] wrote:
Hey, just bumping this up as I ran into this a long time ago and still
don’t know if there is a solution. Seems like it shouldn’t be that hard
but I don’t know it.
this is the code I am using:
Pages: <%=
pagination_links(@location_pages) %>
so can I drop the ‘Pages:’ if the page hasn’t reached the per page
limit?
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)%>
Pages:
<%end%>
<%= pagination_links(@news_item_pages) %>
Cheers,
Jason