aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2018-09-14 13:53:16 -0400
committerGitHub <noreply@github.com>2018-09-14 13:53:16 -0400
commit65bf046fd1c05405591b940e3b3cd718ca1edba1 (patch)
tree7fe01750df956b3262f3ac5164f4f9e13210d650 /guides/source
parent9cafaadc0cce68143bb7390f9b147ed23da38737 (diff)
parent7dd9916c0d5e5d149bdde8cbeec42ca49cf3f6ca (diff)
downloadrails-65bf046fd1c05405591b940e3b3cd718ca1edba1.tar.gz
rails-65bf046fd1c05405591b940e3b3cd718ca1edba1.tar.bz2
rails-65bf046fd1c05405591b940e3b3cd718ca1edba1.zip
Merge pull request #33883 from cbisnett/active_storage_route_prefix_configuration
Configure Active Storage route prefix
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/configuring.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 0ff6f48c14..e372b3a816 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -832,6 +832,14 @@ text/javascript image/svg+xml application/postscript application/x-shockwave-fla
The default is 5 minutes.
+* `config.active_storage.routes_prefix` can be used to set the route prefix for the routes served by Active Storage. Accepts a string that will be prepended to the generated routes.
+
+ ```ruby
+ config.active_storage.routes_prefix = '/files'
+ ```
+
+ The default is `/rails/active_storage`
+
### Configuring a Database
Just about every Rails application will interact with a database. You can connect to the database by setting an environment variable `ENV['DATABASE_URL']` or by using a configuration file called `config/database.yml`.