diff --git a/actionpack/lib/action_view/render/partials.rb b/actionpack/lib/action_view/render/partials.rb index 6ad40ad8d41d67f2cb55cbc716dcccd1fe53262d..19bd04c4b8c83fa38da4e1d3be399002908232e7 100644 --- a/actionpack/lib/action_view/render/partials.rb +++ b/actionpack/lib/action_view/render/partials.rb @@ -71,6 +71,11 @@ module ActionView # # The :as option may be used when rendering partials. # + # Also, you can specify a partial which will be render as a spacer between each element by passing partial name to + # +:spacer_template+. The following example will render "advertiser/_ad_divider.erb" between each ad partial. + # + # <%= render :partial => "ad", :collection => @advertisements, :spacer_template => "ad_divider" %> + # # NOTE: Due to backwards compatibility concerns, the collection can't be one of hashes. Normally you'd also # just keep domain objects, like Active Records, in there. #