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

Fix small typo in Layouts and Rendering guide. [ci skip]

Changed "same way they do" to "same way they are".
This commit is contained in:
Conrad Beach 2016-11-14 14:04:22 -07:00
parent e491b2c063
commit b8341b3a2a

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