Add documentation for `:spacer_template` in Rails 3

This setting was existed since Rails 2.3.x, and seems like it have been left out when we rewriting the documentation.
This commit is contained in:
Prem Sichanugrist 2010-09-12 14:59:12 +07:00
parent 02656ac397
commit 4eb89873c9
1 changed files with 5 additions and 0 deletions

View File

@ -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.
#