instance method
render
Ruby on Rails 5.2.8.1
Since v3.0.20Signature
render(*args, &block)
Normalizes arguments, options and then delegates render_to_body and sticks the result in self.response_body.
Parameters
-
argsrest -
blockblock
Source
# File actionpack/lib/abstract_controller/rendering.rb, line 23
def render(*args, &block)
options = _normalize_render(*args, &block)
rendered_body = render_to_body(options)
if options[:html]
_set_html_content_type
else
_set_rendered_content_type rendered_format
end
self.response_body = rendered_body
end
Defined in actionpack/lib/abstract_controller/rendering.rb line 23
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in AbstractController::Rendering