instance method root_entry?

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

root_entry?(name)

Whether the root directory has an entry (file or directory) by this name.

Parameters

name req
Source
# File actionpack/lib/action_dispatch/middleware/static.rb, line 164
      def root_entry?(name)
        File.exist?("#{@root}/#{name.ascii_only? ? name : name.b}")
      end

Defined in actionpack/lib/action_dispatch/middleware/static.rb line 164 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::FileHandler

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close