instance method render_collection

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

render_collection()

No documentation comment.

Source
# File actionpack/lib/action_view/render/partials.rb, line 273
      def render_collection
        return nil if @collection.blank?

        if @options.key?(:spacer_template)
          spacer = find_template(@options[:spacer_template]).render(@view, @locals)
        end

        result = @template ? collection_with_template : collection_without_template
        result.join(spacer).html_safe
      end

Defined in actionpack/lib/action_view/render/partials.rb line 273 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Partials::PartialRenderer

Type at least 2 characters to search.

↑↓ navigate · open · esc close