method

url

Importance_1
v6.1.3.1 - Show latest stable - 0 notes - Class: Preview
url(**options) public

Returns the URL of the preview’s variant on the service. Raises ActiveStorage::Preview::UnprocessedError if the preview has not been processed yet.

This method synchronously processes a variant of the preview image, so do not call it in views. Instead, generate a stable URL that redirects to the URL returned by this method.

Show source
Register or log in to add new notes.