method

match?

rails latest stable - Class: ActionDispatch::FileHandler

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

match?(path)
public

Takes a path to a file. If the file is found, has valid encoding, and has correct read permissions, the return value is a URI-escaped string representing the filename. Otherwise, false is returned.

Used by the Static class to check the existence of a valid file in the server’s public/ directory (see Static#call).