We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c4d217 commit 507e729Copy full SHA for 507e729
guides/source/active_storage_overview.md
@@ -674,6 +674,14 @@ end
674
<%= image_tag account_logo_path %>
675
```
676
677
+And then you might want to disable the Active Storage default routes with:
678
+
679
+```ruby
680
+config.active_storage.draw_routes = false
681
+```
682
683
+to prevent files being accessed with the publicly accessible URLs.
684
685
[ActiveStorage::Blobs::RedirectController]: (https://github.com/rails/rails/blob/main/activestorage/app/controllers/active_storage/blobs/redirect_controller.rb)
686
[ActiveStorage::Representations::RedirectController]: (https://github.com/rails/rails/blob/main/activestorage/app/controllers/active_storage/representations/redirect_controller.rb)
687
0 commit comments