openstreetmap-website

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

Ruby

The Rails application that powers OpenStreetMap

AmfController#putrelation

Save a relation.
Returns
0. 0 (success),
1. original relation id (unchanged),
2. new relation id,
3. version.

Source | Google | Stack overflow

Edit

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

cd openstreetmap-website

open app/controllers/amf_controller.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-AmfController-putrelation-for-pr


# Commit to git

git add app/controllers/amf_controller.rbgit commit -m "better docs for AmfController#putrelation"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-AmfController-putrelation-for-pr

hub pull-request


# Celebrate!