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

Merge pull request #27046 from conradbeach/fix-typo-layouts-and-rendering-guide

Fix small typo in Layouts and Rendering guide.
This commit is contained in:
Jon Moss 2016-11-14 16:11:29 -05:00 committed by GitHub
commit cfa5cab3a8

View file

@ -1280,7 +1280,7 @@ When rendering collections it is also possible to use the `:layout` option:
<%= render partial: "product", collection: @products, layout: "special_layout" %>
```
The layout will be rendered together with the partial for each item in the collection. The current object and object_counter variables will be available in the layout as well, the same way they do within the partial.
The layout will be rendered together with the partial for each item in the collection. The current object and object_counter variables will be available in the layout as well, the same way they are within the partial.
### Using Nested Layouts