我需要显示一个标签,写着Showing results from 1 to 10
,所以当我在页面之间移动时,下一页将显示Showing results from 10 to 20
,等等
这是可能的will_paginate
,如果它是可能的,你有任何示例代码吗?
<%= page_entries_info @posts %>
在这里为您解决了这个问题。查看此页以获取示例代码。