Skip to content

Commit

Permalink
Merge pull request #13119 from sbagdat/patch-1
Browse files Browse the repository at this point in the history
Update render with a spacer_template [ci skip]
  • Loading branch information
rafaelfranca committed Dec 1, 2013
2 parents cd4d931 + b13c501 commit 777bc58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/action_view_overview.md
Expand Up @@ -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.
Expand Down

0 comments on commit 777bc58

Please sign in to comment.