instance method
render
Ruby on Rails 4.1.16
Since v3.0.20Signature
render(*args, &block)
Normalize arguments, options and then delegates render_to_body and sticks the result in self.response_body. :api: public
Parameters
-
argsrest -
blockblock
Source
# File actionpack/lib/abstract_controller/rendering.rb, line 23
def render(*args, &block)
options = _normalize_render(*args, &block)
self.response_body = render_to_body(options)
_process_format(rendered_format, options) if rendered_format
self.response_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