提交 4eb89873 编写于 作者: P Prem Sichanugrist

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.
上级 02656ac3
......@@ -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.
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册