instance method file_exist?

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18 Private

Available in: v2.2.3 v2.3.18

Signature

file_exist?(path)

No documentation comment.

Parameters

path req
Source
# File railties/lib/rails/rack/static.rb, line 29
        def file_exist?(path)
          full_path = File.join(@file_server.root, ::Rack::Utils.unescape(path))
          File.file?(full_path) && File.readable?(full_path)
        end

Defined in railties/lib/rails/rack/static.rb line 29 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Rack::Static

Type at least 2 characters to search.

↑↓ navigate · open · esc close