openstreetmap-website

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

Ruby

The Rails application that powers OpenStreetMap

ActionController::Pagination::Paginator#initialize

Creates a new Paginator on the given +controller+ for a set of items
of size +item_count+ and having +items_per_page+ items per page.
Raises ArgumentError if items_per_page is out of bounds (i.e., less
than or equal to zero). The page CGI parameter for links defaults to
"page" and can be overridden with +page_parameter+.

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--Paginator-initialize-for-pr


# Commit to git

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


# 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--Paginator-initialize-for-pr

hub pull-request


# Celebrate!