instance method
new
Ruby on Rails 7.1.6
Since v5.2.8.1Signature
new(env = nil)
Creates a new renderer using the same controller, but with a new Rack env.
ApplicationController.renderer.new(method: "post")
Parameters
-
envopt = nil
Source
# File actionpack/lib/action_controller/renderer.rb, line 69
def new(env = nil)
self.class.new controller, env, @defaults
end
Defined in actionpack/lib/action_controller/renderer.rb line 69
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Renderer