Permalink
Browse files

fix spacer template example

  • Loading branch information...
1 parent ea54d2c commit ed3a15da9063b283a0ebb15934596fe2b2083473 @lest lest committed with vijaydev Feb 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/layouts_and_rendering.textile
@@ -1188,7 +1188,7 @@ You can also specify a second partial to be rendered between instances of the ma
h5. Spacer Templates
<erb>
-<%= render @products, :spacer_template => "product_ruler" %>
+<%= render :partial => @products, :spacer_template => "product_ruler" %>
</erb>
Rails will render the +_product_ruler+ partial (with no data passed in to it) between each pair of +_product+ partials.

0 comments on commit ed3a15d

Please sign in to comment.