method

url

Importance_1
v8.1.1 - Show latest stable - 0 notes - Class: Variant
url(expires_in: ActiveStorage.service_urls_expire_in, disposition: :inline) public

Returns the URL of the blob variant on the service. See ActiveStorage::Blob#url for details.

Use url_for(variant) (or the implied form, like link_to variant or redirect_to variant) to get the stable URL for a variant that points to the ActiveStorage::Representations::ProxyController or ActiveStorage::Representations::RedirectController, which in turn will use this service_call method for its redirection.

Show source
Register or log in to add new notes.