method
render
v3.1.0 -
Show latest stable
- Class:
ActionView::PartialRenderer
render(context, options, block)public
No documentation available.
# File actionpack/lib/action_view/renderer/partial_renderer.rb, line 216
def render(context, options, block)
setup(context, options, block)
wrap_formats(@path) do
identifier = ((@template = find_partial) ? @template.identifier : @path)
if @collection
instrument(:collection, :identifier => identifier || "collection", :count => @collection.size) do
render_collection
end
else
instrument(:partial, :identifier => identifier) do
render_partial
end
end
end
end