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.

Source | Google | Stack overflow

Edit

git clone [email protected]:mislav/will_paginate.git

cd will_paginate

open lib/will_paginate/view_helpers.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-WillPaginate--ViewHelpers-page_entries_info-for-pr


# Commit to git

git add lib/will_paginate/view_helpers.rbgit commit -m "better docs for WillPaginate::ViewHelpers#page_entries_info"


# Open pull request

gem 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!