Skip to content

Commit bd5fe53

Browse files
committed
Correct ActiveStorage guide phrasing
The example passes in the attachment to `url_for`, not the blob. Make it clear that either will work.
1 parent 4077fe0 commit bd5fe53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/active_storage_overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,8 +693,8 @@ require a higher level of protection consider implementing
693693

694694
### Redirect Mode
695695

696-
To generate a permanent URL for a blob, you can pass the blob to the
697-
[`url_for`][ActionView::RoutingUrlFor#url_for] view helper. This generates a
696+
To generate a permanent URL for a blob, you can pass the attachment or the blob to
697+
the [`url_for`][ActionView::RoutingUrlFor#url_for] view helper. This generates a
698698
URL with the blob's [`signed_id`][ActiveStorage::Blob#signed_id]
699699
that is routed to the blob's [`RedirectController`][`ActiveStorage::Blobs::RedirectController`]
700700

0 commit comments

Comments
 (0)