class method
self.for
Ruby on Rails 7.1.6
Since v5.2.8.1Signature
self.for(controller, env = nil, defaults = DEFAULTS)
Creates a new renderer using the given controller class. See ::new.
Parameters
-
controllerreq -
envopt = nil -
defaultsopt = DEFAULTS
Source
# File actionpack/lib/action_controller/renderer.rb, line 61
def self.for(controller, env = nil, defaults = DEFAULTS)
new(controller, env, defaults)
end
Defined in actionpack/lib/action_controller/renderer.rb line 61
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Renderer