will_paginate

https://github.com/mislav/will_paginate

Ruby

Pagination library for Rails and other Ruby applications

WillPaginate::CollectionMethods#out_of_bounds?

Helper method that is true when someone tries to fetch a page with a
larger number than the last page. Can be used in combination with flashes
and redirecting.

Source | Google | Stack overflow

Edit

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

cd will_paginate

open lib/will_paginate/collection.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-WillPaginate--CollectionMethods-out_of_bounds--for-pr


# Commit to git

git add lib/will_paginate/collection.rbgit commit -m "better docs for WillPaginate::CollectionMethods#out_of_bounds?"


# 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--CollectionMethods-out_of_bounds--for-pr

hub pull-request


# Celebrate!