class ActiveStorage::Representations::RedirectController
Authenticated Controllers.
require a higher level of protection consider implementing
generated URLs are hard to guess, but permanent by design. If your files
WARNING: All Active Storage controllers are publicly accessible by default. The
Take a signed permanent reference for a blob representation and turn it into an expiring service URL for download.
def show
def show expires_in ActiveStorage.service_urls_expire_in redirect_to @representation.url(disposition: params[:disposition]), allow_other_host: true end