class Metal
Ruby on Rails 3.0.20
Since v3.0.20ActionController::Metal provides a way to get a valid Rack application from a controller.
In AbstractController, dispatching is triggered directly by calling #process on a new controller. ActionController::Metal provides an #action method that returns a valid Rack application for a given action. Other rack builders, such as Rack::Builder, Rack::URLMap, and the Rails router, can dispatch directly to the action returned by FooController.action(:index).
Inherits from
Methods (defined here)
- # content_type
- # content_type=
- # controller_name
- # dispatch
- # location
- # location=
- # params
- # params=
- # response_body=
- # status
- # status=
- # to_a
- # url_for
- self. action
- self. call
- self. controller_name
- self. inherited
- self. middleware
- self. new
- self. use
Used by
Subclasses (1)
Methods (inherited)
From AbstractController::Base (10)
- # action_methods
- # controller_path
- # process
- self. abstract!
- self. action_methods
- self. clear_action_methods!
- self. controller_path
- self. hidden_actions
- self. internal_methods
- self. method_added
From ActiveSupport::Configurable (1)
- # config
From ActiveSupport::DescendantsTracker (6)
- # descendants
- # direct_descendants
- # inherited
- self. clear
- self. descendants
- self. direct_descendants
From Object (26)
- # acts_like?
- # app
- # blank?
- # controller
- # create
- # create_fixtures
- # destroy
- # duplicable?
- # edit
- # helper
- # html_safe?
- # index
- # instance_variable_names
- # new
- # new_session
- # presence
- # present?
- # reload!
- # returning
- # show
- # to_param
- # to_query
- # try
- # unescape
- # update
- # with_options
From ActiveSupport::Concern (3)
- # append_features
- # included
- self. extended