aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorSıtkı Bağdat <sbagdat@gmail.com>2013-12-01 04:31:15 +0200
committerSıtkı Bağdat <sbagdat@gmail.com>2013-12-01 04:31:15 +0200
commitb13c5013ae2332a6f5425949baa1bb2d916e4aee (patch)
treea59a162c07925583de27e8063f7fb0fcf967726b /guides
parentcd4d9316591ab61e478f98e1697599cdffc11d8c (diff)
downloadrails-b13c5013ae2332a6f5425949baa1bb2d916e4aee.tar.gz
rails-b13c5013ae2332a6f5425949baa1bb2d916e4aee.tar.bz2
rails-b13c5013ae2332a6f5425949baa1bb2d916e4aee.zip
Update render with a spacer_template [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/action_view_overview.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md
index d19dd11181..d451073567 100644
--- a/guides/source/action_view_overview.md
+++ b/guides/source/action_view_overview.md
@@ -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:
```erb
-<%= 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.