openstreetmap-website

https://github.com/openstreetmap/openstreetmap-website

Ruby

The Rails application that powers OpenStreetMap

ActionController::Pagination::ClassMethods#paginate

Creates a +before_filter+ which automatically paginates an Active
Record model for all actions in a controller (or certain actions if
specified with the <tt>:actions</tt> option).

+options+ are the same as PaginationHelper#paginate, with the addition
of:
<tt>:actions</tt>:: an array of actions for which the pagination is
                    active. Defaults to +nil+ (i.e., every action)

Source | Google | Stack overflow

Edit

git clone [email protected]:openstreetmap/openstreetmap-website.git

cd openstreetmap-website

open lib/classic_pagination/pagination.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActionController--Pagination--ClassMethods-paginate-for-pr


# Commit to git

git add lib/classic_pagination/pagination.rbgit commit -m "better docs for ActionController::Pagination::ClassMethods#paginate"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ActionController--Pagination--ClassMethods-paginate-for-pr

hub pull-request


# Celebrate!