Browse files

Merge pull request #13119 from sbagdat/patch-1

Update render with a spacer_template [ci skip]
  • Loading branch information...
2 parents cd4d931 + b13c501 commit 777bc58de1a332c9dcf65becaf11643fc36d4101 @rafaelfranca rafaelfranca committed Dec 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/
@@ -262,7 +262,7 @@ Rails determines the name of the partial to use by looking at the model name in
You can also specify a second partial to be rendered between instances of the main partial by using the `:spacer_template` option:
-<%= render @products, spacer_template: "product_ruler" %>
+<%= render partial: @products, spacer_template: "product_ruler" %>
Rails will render the `_product_ruler` partial (with no data passed to it) between each pair of `_product` partials.

0 comments on commit 777bc58

Please sign in to comment.