will_paginate
https://github.com/mislav/will_paginate
Ruby
Pagination library for Rails and other Ruby applications
WillPaginate::ViewHelpers#page_entries_info
Renders a message containing number of displayed vs. total entries. <%= page_entries_info @posts %> #-> Displaying posts 6 - 12 of 26 in total The default output contains HTML. Use ":html => false" for plain text.
Edit
git clone [email protected]:mislav/will_paginate.git
cd will_paginate
open lib/will_paginate/view_helpers.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-WillPaginate--ViewHelpers-page_entries_info-for-pr
# Commit to gitgit add lib/will_paginate/view_helpers.rbgit commit -m "better docs for WillPaginate::ViewHelpers#page_entries_info"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-WillPaginate--ViewHelpers-page_entries_info-for-pr
hub pull-request
# Celebrate!