aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2012-02-12 22:00:09 +0300
committerSergey Nartimov <just.lest@gmail.com>2012-02-12 22:00:09 +0300
commit2aaa9da6fda40dff3cc0ed393114bfd41fa04840 (patch)
tree648e70076cccda70f6b25490906b22f1d290e7be /railties
parent8934bda200b07e28955dfc5814a92c3cdeab8d3f (diff)
downloadrails-2aaa9da6fda40dff3cc0ed393114bfd41fa04840.tar.gz
rails-2aaa9da6fda40dff3cc0ed393114bfd41fa04840.tar.bz2
rails-2aaa9da6fda40dff3cc0ed393114bfd41fa04840.zip
fix spacer template example
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/layouts_and_rendering.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile
index 6ac9645917..be352cfe3d 100644
--- a/railties/guides/source/layouts_and_rendering.textile
+++ b/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.