Method: ActionController::Renderer#new

Defined in:
actionpack/lib/action_controller/renderer.rb

#new(env = nil) ⇒ Object

Creates a new renderer using the same controller, but with a new Rack env.

ApplicationController.renderer.new(method: "post")
[View source]

72
73
74
# File 'actionpack/lib/action_controller/renderer.rb', line 72

def new(env = nil)
  self.class.new controller, env, @defaults
end