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