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:
parent
02656ac397
commit
4eb89873c9
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue