class Static
Ruby on Rails 7.2.3
Since v3.0.20Action Dispatch Static
This middleware serves static files from disk, if available. If no file is found, it hands off to the main app.
In Rails apps, this middleware is configured to serve assets from the public/ directory.
Only GET and HEAD requests are served. POST and other HTTP methods are handed off to the main app.
Only files in the root directory are served; path traversal is denied.
Inherits from
Methods (defined here)
Methods (inherited)
From Object (17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # with
- # with_options
From ActiveSupport::NumericWithFormat (2)
- # to_formatted_s
- # to_fs