openstreetmap-website

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

Ruby

The Rails application that powers OpenStreetMap

ActionController::Pagination::Paginator#current_page=

Sets the current page number of this paginator. If +page+ is a Page
object, its +number+ attribute is used as the value; if the page does
not belong to this Paginator, an ArgumentError is raised.

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-current_page--for-pr


# Commit to git

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


# 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-current_page--for-pr

hub pull-request


# Celebrate!