From 2aaa9da6fda40dff3cc0ed393114bfd41fa04840 Mon Sep 17 00:00:00 2001 From: Sergey Nartimov Date: Sun, 12 Feb 2012 22:00:09 +0300 Subject: fix spacer template example --- railties/guides/source/layouts_and_rendering.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -<%= render @products, :spacer_template => "product_ruler" %> +<%= render :partial => @products, :spacer_template => "product_ruler" %> Rails will render the +_product_ruler+ partial (with no data passed in to it) between each pair of +_product+ partials. -- cgit v1.2.3