class ActionController::Responders::SelectResponse
- ActionController::Responders::SelectResponse
- Reference
- Object
Overview
Helper class for selecting the response to render / execute
Defined in:
action-controller/responders.crConstant Summary
- 
        ACCEPTED_FORMATS = {"text/html": :html, "application/xml": :xml, "text/xml": :xml, "application/json": :json, "text/plain": :text, "application/octet-stream": :binary, "text/yaml": :yaml, "text/x-yaml": :yaml, "application/yaml": :yaml, "application/x-yaml": :yaml}
Constructors
Class Method Summary
- 
        .accepts(accepts_formats)
        
          Creates an ordered list of supported formats with requested mime types 
Instance Method Summary
- 
        #build_response
        
          Respond appropriately 
- #options : Hash(Symbol, IO -> Nil)
- 
        #responses(&)
        
          Build a list of possible responses to the request 
Macro Summary
- binary(obj = nil, &block)
- html(obj = nil, &block)
- json(obj = nil, &block)
- text(obj = nil, &block)
- xml(obj = nil, &block)
- yaml(obj = nil, &block)
Constructor Detail
Class Method Detail
        
        def self.accepts(accepts_formats)
        #
      
      
        Creates an ordered list of supported formats with requested mime types