openstreetmap-website

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

Ruby

The Rails application that powers OpenStreetMap

NodeController#delete

Delete a node. Doesn't actually delete it, but retains its history
in a wiki-like way. We therefore treat it like an update, so the delete
method returns the new version number.

Source | Google | Stack overflow

Edit

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

cd openstreetmap-website

open app/controllers/node_controller.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-NodeController-delete-for-pr


# Commit to git

git add app/controllers/node_controller.rbgit commit -m "better docs for NodeController#delete"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-NodeController-delete-for-pr

hub pull-request


# Celebrate!