The Rails application that powers OpenStreetMap
Find a file
Andy Allan 24f6aeda6a Use hash-based flash objects to render complex flash messages
Since flash objects can only be String, Hash or Array (notably excluding SafeBuffers), then this approach is necessary to render complex html in a safe manner.

Each local can be treated as an (unsafe) string, and therefore escaped normally when rendered into the template. The template (and translation strings) can
contain html since they are no longer stored in the flash as a plain string.

Fixes #3215
2021-06-23 20:10:55 +01:00
.github Drop last vestiges of ruby 2.5 support 2021-06-08 20:33:25 +01:00
app Use hash-based flash objects to render complex flash messages 2021-06-23 20:10:55 +01:00
bin Update to rails 6.1.3.2 2021-05-12 18:49:21 +01:00
config add banner for SotM 2021 2021-06-21 21:42:05 +02:00
db Update to rails 6.1.3.2 2021-05-12 18:49:21 +01:00
docker Added note about password and privileges for OSM DB user 2021-02-12 22:56:17 -08:00
lib Drop last vestiges of ruby 2.5 support 2021-06-08 20:33:25 +01:00
public Remove both Potlatch versions 2021-01-05 21:18:45 +00:00
script Escape characters 2021-02-17 21:53:04 +00:00
storage Update to rails 5.2.0 2018-06-19 00:16:24 +01:00
test Use hash-based flash objects to render complex flash messages 2021-06-23 20:10:55 +01:00
vendor/assets Remove incidental additions 2021-03-05 10:37:22 -05:00
.dockerignore Added new parallel test job for docker-compose 2021-01-28 12:03:58 -08:00
.erb-lint.yml Sort cops 2020-04-15 15:55:18 +01:00
.gitignore Introduce docker-compose config for development 2021-01-28 12:03:58 -08:00
.mailmap Update mailmap 2018-10-29 12:48:32 +00:00
.rubocop.yml Drop last vestiges of ruby 2.5 support 2021-06-08 20:33:25 +01:00
.rubocop_todo.yml Remove the Yahoo OpenID link as they no longer support OpenID 2021-06-17 22:33:05 +01:00
config.ru Update to rails 6.1.3.2 2021-05-12 18:49:21 +01:00
CONFIGURE.md Update code example to follow rubocop recommendations 2021-03-17 15:37:55 +00:00
CONTRIBUTING.md Switch to using 'rails test:all' in documentation and CI 2021-05-19 13:39:37 +01:00
docker-compose.yml Removed ENABLE_BOOTSNAP environment variable 2021-02-12 22:56:17 -08:00
DOCKER.md Switch to using 'rails test:all' in documentation and CI 2021-05-19 13:39:37 +01:00
Dockerfile Added explanatory notes and comments 2021-02-12 22:56:17 -08:00
FAQ.md Link to official OWG Banner Policy page 2020-10-21 23:25:51 +08:00
Gemfile Bump puma from 5.3.0 to 5.3.1 2021-05-18 01:34:02 +00:00
Gemfile.lock Update bundle 2021-06-22 18:18:47 +01:00
INSTALL.md Merge remote-tracking branch 'upstream/pull/3213' 2021-06-04 21:10:32 +01:00
LICENSE Add GPLv2 license file and mention in README 2012-02-23 18:55:39 +00:00
package.json Switch to using js-cookie to manage cookies from javascript 2021-05-17 18:57:48 +01:00
Rakefile Update to rails 5.0.4 2017-06-27 08:26:44 +01:00
README.md Remove both Potlatch versions 2021-01-05 21:18:45 +00:00
VAGRANT.md Switch to using 'rails test:all' in documentation and CI 2021-05-19 13:39:37 +01:00
Vagrantfile Increase memory given to the virtualbox vm 2020-12-16 18:25:39 +00:00
Vendorfile Remove swfobject from Vendorfile as it is no longer used 2021-03-04 14:46:02 +00:00
yarn.lock Bump eslint from 7.28.0 to 7.29.0 2021-06-18 23:00:40 +00:00

"The Rails Port"

Lint Tests Coverage Status

This is The Rails Port, the Ruby on Rails application that powers the OpenStreetMap website and API. The software is also known as "openstreetmap-website".

This repository consists of:

  • The web site, including user accounts, diary entries, user-to-user messaging.
  • The XML-based editing API.
  • The integrated version of the iD editors.
  • The Browse pages - a web front-end to the OpenStreetMap data.
  • The GPX uploads, browsing and API.

A fully-functional Rails Port installation depends on other services, including map tile servers and geocoding services, that are provided by other software. The default installation uses publicly-available services to help with development and testing.

License

This software is licensed under the GNU General Public License 2.0, a copy of which can be found in the LICENSE file.

Installation

The Rails Port is a Ruby on Rails application that uses PostgreSQL as its database, and has a large number of dependencies for installation. For full details please see INSTALL.md.

Development

We're always keen to have more developers! Pull requests are very welcome.

More details on contributing to the code are in the CONTRIBUTING.md file.

Maintainers