class ActiveStorage::Preview
def service_url(**options)
This method synchronously processes a variant of the preview image, so do not call it in views. Instead, generate
preview has not been processed yet.
Returns the URL of the preview's variant on the service. Raises ActiveStorage::Preview::UnprocessedError if the
def service_url(**options) if processed? variant.service_url(options) else raise UnprocessedError end end