@@ -586,9 +586,8 @@ require a higher level of protection consider implementing
586
586
To generate a permanent URL for a blob, you can pass the blob to the
587
587
[`url_for`][ActionView::RoutingUrlFor#url_for] view helper. This generates a
588
588
URL with the blob's [`signed_id`][ActiveStorage::Blob#signed_id]
589
- that is routed to the blob's [`RedirectController`][ActiveStorage::Blobs::RedirectController]
589
+ that is routed to the blob's [`RedirectController`][` ActiveStorage::Blobs::RedirectController` ]
590
590
591
- [ActiveStorage::Blobs::RedirectController] : https://github.com/rails/rails/blob/main/activestorage/app/controllers/active_storage/blobs/redirect_controller.rb
592
591
` ` ` ruby
593
592
url_for(user.avatar)
594
593
# => /rails/active_storage/blobs/:signed_id/my-avatar.png
@@ -721,10 +720,10 @@ config.active_storage.draw_routes = false
721
720
722
721
to prevent files being accessed with the publicly accessible URLs.
723
722
724
- [`ActiveStorage::Blobs::RedirectController`] : https://github.com/rails/rails/blob/main/activestorage/app/controllers/active_storage/blobs/redirect_controller.rb
725
- [`ActiveStorage::Blobs::ProxyController`] : https://github.com/rails/rails/blob/main/activestorage/app/controllers/active_storage/blobs/proxy_controller.rb
726
- [`ActiveStorage::Representations::RedirectController`] : https://github.com/rails/rails/blob/main/activestorage/app/controllers/active_storage/representations/redirect_controller.rb
727
- [`ActiveStorage::Representations::ProxyController`] : https://github.com/rails/rails/blob/main/activestorage/app/controllers/active_storage/representations/proxy_controller.rb
723
+ [`ActiveStorage::Blobs::RedirectController`] : https://api.rubyonrails.org/classes/ActiveStorage/Blobs/RedirectController.html
724
+ [`ActiveStorage::Blobs::ProxyController`] : https://api.rubyonrails.org/classes/ActiveStorage/Blobs/ProxyController.html
725
+ [`ActiveStorage::Representations::RedirectController`] : https://api.rubyonrails.org/classes/ActiveStorage/Representations/RedirectController.html
726
+ [`ActiveStorage::Representations::ProxyController`] : https://api.rubyonrails.org/classes/ActiveStorage/Representations/ProxyController.html
728
727
729
728
Downloading Files
730
729
-----------------
@@ -1388,7 +1387,7 @@ Implementing Support for Other Cloud Services
1388
1387
1389
1388
If you need to support a cloud service other than these, you will need to
1390
1389
implement the Service. Each service extends
1391
- [`ActiveStorage::Service`](https://github.com/rails/rails/blob/main/activestorage/lib/active_storage/service.rb )
1390
+ [`ActiveStorage::Service`](https://api.rubyonrails.org/classes/ActiveStorage/Service.html )
1392
1391
by implementing the methods necessary to upload and download files to the cloud.
1393
1392
1394
1393
Purging Unattached Uploads
0 commit comments