instance method public_url

Ruby on Rails 7.0.10

Since v6.1.7.10 Private

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

public_url(key, filename:, content_type: nil, disposition: :attachment, **)

No documentation comment.

Parameters

key req
filename keyreq
content_type key = nil
disposition key = :attachment
kwargs keyrest
Source
# File activestorage/lib/active_storage/service/disk_service.rb, line 118
      def public_url(key, filename:, content_type: nil, disposition: :attachment, **)
        generate_url(key, expires_in: nil, filename: filename, content_type: content_type, disposition: disposition)
      end

Defined in activestorage/lib/active_storage/service/disk_service.rb line 118 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveStorage::Service::DiskService

Type at least 2 characters to search.

↑↓ navigate · open · esc close