I need to customize _pagination.html.erb to display the same information as the page_entries_info helper method, for example: Showing records 6 to 10 of 26.
Having a _pagination.html.erb like this:
<%= paginator.render do -%>
<% end -%>
What methods or objects are available to get the currently displayed range (6 to 10 in the example above), and the total number of records being paginated (26, in the example)?
First approach, you could override Kaminari localize to display format
"Showing %{entry_name} %{first} to %{last} of %{total}"Second approach, as you want to custom
_pagination.html.erb