diff options
author | Claudio B <claudiob@users.noreply.github.com> | 2017-12-15 15:51:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 15:51:25 -0800 |
commit | ca2c4cb7c4ee2f126e65ade6192a0c6b5ec58ffc (patch) | |
tree | cbb1983b9f0db7a11771e7b57849a7b31adb3abf /guides/source | |
parent | 6bd28902e2a11060562180241335a621d7e4b864 (diff) | |
parent | 6211445d55cab5252ead323ef0f70d9f5993e436 (diff) | |
download | rails-ca2c4cb7c4ee2f126e65ade6192a0c6b5ec58ffc.tar.gz rails-ca2c4cb7c4ee2f126e65ade6192a0c6b5ec58ffc.tar.bz2 rails-ca2c4cb7c4ee2f126e65ade6192a0c6b5ec58ffc.zip |
Merge pull request #31481 from claudiob/fix-ast-guides
[ci skip] Use :amazon, not :s3, so that guides reflect the current code
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_storage_overview.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md index dbce074388..624b5613f6 100644 --- a/guides/source/active_storage_overview.md +++ b/guides/source/active_storage_overview.md @@ -46,7 +46,7 @@ the migration is generated automatically. Declare Active Storage services in `config/storage.yml`. For each service your application uses, provide a name and the requisite configuration. The example -below declares three services named `local`, `test`, and `s3`: +below declares three services named `local`, `test`, and `amazon`: ```yaml local: @@ -57,7 +57,7 @@ test: service: Disk root: <%= Rails.root.join("tmp/storage") %> -s3: +amazon: service: S3 access_key_id: "" secret_access_key: "" @@ -75,12 +75,12 @@ development environment, you would add the following to config.active_storage.service = :local ``` -To use the s3 service in production, you add the following to +To use the Amazon S3 service in production, you add the following to `config/environments/production.rb`: ```ruby -# Store files in S3. -config.active_storage.service = :s3 +# Store files on Amazon S3. +config.active_storage.service = :amazon ``` Continue reading for more information on the built-in service adapters (e.g. @@ -101,7 +101,7 @@ local: Declare an S3 service in `config/storage.yml`: ``` yaml -s3: +amazon: service: S3 access_key_id: "" secret_access_key: "" |