1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update render with a spacer_template [ci skip]

This commit is contained in:
Sıtkı Bağdat 2013-12-01 04:31:15 +02:00
parent cd4d931659
commit b13c5013ae

View file

@ -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.