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:
parent
cd4d931659
commit
b13c5013ae
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue