method

url

Importance_1
v6.1.7.7 - Show latest stable - 0 notes - Class: Blob
url(expires_in: ActiveStorage.service_urls_expire_in, disposition: :inline, filename: nil, **options) public

Returns the URL of the blob on the service. This returns a permanent URL for public files, and returns a short-lived URL for private files. Private files are signed, and not for public use. Instead, the URL should only be exposed as a redirect from a stable, possibly authenticated URL. Hiding the URL behind a redirect also allows you to change services without updating all URLs.

Show source
Register or log in to add new notes.