We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
:spacer_template
1 parent 02656ac commit 4eb8987Copy full SHA for 4eb8987
actionpack/lib/action_view/render/partials.rb
@@ -71,6 +71,11 @@ module ActionView
71
#
72
# The :as option may be used when rendering partials.
73
74
+ # Also, you can specify a partial which will be render as a spacer between each element by passing partial name to
75
+ # +:spacer_template+. The following example will render "advertiser/_ad_divider.erb" between each ad partial.
76
+ #
77
+ # <%= render :partial => "ad", :collection => @advertisements, :spacer_template => "ad_divider" %>
78
79
# NOTE: Due to backwards compatibility concerns, the collection can't be one of hashes. Normally you'd also
80
# just keep domain objects, like Active Records, in there.
81
0 commit comments