Skip to content

Commit

Permalink
Add documentation for :spacer_template in Rails 3
Browse files Browse the repository at this point in the history
This setting was existed since Rails 2.3.x, and seems like it have been left out when we rewriting the documentation.
  • Loading branch information
sikachu authored and mikel committed Sep 13, 2010
1 parent 41807eb commit 4ef2dea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actionpack/lib/action_view/render/partials.rb
Expand Up @@ -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.
#
Expand Down

0 comments on commit 4ef2dea

Please sign in to comment.