instance method
render
Ruby on Rails 3.2.22.5
Since v3.1.12Signature
render(context, options)
Main render entry point shared by AV and AC.
Parameters
-
contextreq -
optionsreq
Source
# File actionpack/lib/action_view/renderer/renderer.rb, line 15
def render(context, options)
if (options.is_a?(HashWithIndifferentAccess) && !options.respond_to?(:permitted?)) ||
(options.respond_to?(:permitted?) && !options.permitted?)
raise ArgumentError, "render parameters are not permitted"
end
if options.key?(:partial)
render_partial(context, options)
else
render_template(context, options)
end
end
Defined in actionpack/lib/action_view/renderer/renderer.rb line 15
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Renderer