method

new

rails latest stable - Class: ActionController::Response

Method deprecated or moved

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

new()
public

No documentation available.

# File actionpack/lib/action_controller/response.rb, line 42
    def initialize
      @status = 200
      @header = Rack::Utils::HeaderHash.new(DEFAULT_HEADERS)

      @writer = lambda { |x| @body << x }
      @block = nil

      @body = "",
      @session = []
      @assigns = []
    end