openstreetmap-website

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

Ruby

The Rails application that powers OpenStreetMap

ApplicationController#report_error

Report and error to the user
(If anyone ever fixes Rails so it can set a http status "reason phrase",
 rather than only a status code and having the web engine make up a
 phrase from that, we can also put the error message into the status
 message. For now, rails won't let us)

Source | Google | Stack overflow

Edit

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

cd openstreetmap-website

open app/controllers/application_controller.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ApplicationController-report_error-for-pr


# Commit to git

git add app/controllers/application_controller.rbgit commit -m "better docs for ApplicationController#report_error"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-ApplicationController-report_error-for-pr

hub pull-request


# Celebrate!