diff options
author | Prem Sichanugrist <s@sikac.hu> | 2018-06-02 13:10:24 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-02 13:10:24 +0900 |
commit | 32aa7cdd8f031dc756fdde3501efca7ff72bf576 (patch) | |
tree | 7c71cf2730ad89a2fba659e4041e2d83f546c3cc /guides | |
parent | c1844477a1461ffc9db3d899212f608c2a0c77c9 (diff) | |
parent | 1de3c0dd1b06818420b673d384ade94c38b9dc34 (diff) | |
download | rails-32aa7cdd8f031dc756fdde3501efca7ff72bf576.tar.gz rails-32aa7cdd8f031dc756fdde3501efca7ff72bf576.tar.bz2 rails-32aa7cdd8f031dc756fdde3501efca7ff72bf576.zip |
Merge pull request #33039 from ybakos/guides/layouts_and_rendering_class_spelling_fix
Capitalize class name 'Product' in layouts and rendering guide.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/layouts_and_rendering.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md index d7072a766b..ba3ef4679b 100644 --- a/guides/source/layouts_and_rendering.md +++ b/guides/source/layouts_and_rendering.md @@ -1210,7 +1210,7 @@ Partials are very useful in rendering collections. When you pass a collection to When a partial is called with a pluralized collection, then the individual instances of the partial have access to the member of the collection being rendered via a variable named after the partial. In this case, the partial is `_product`, and within the `_product` partial, you can refer to `product` to get the instance that is being rendered. -There is also a shorthand for this. Assuming `@products` is a collection of `product` instances, you can simply write this in the `index.html.erb` to produce the same result: +There is also a shorthand for this. Assuming `@products` is a collection of `Product` instances, you can simply write this in the `index.html.erb` to produce the same result: ```html+erb <h1>Products</h1> |