aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2015-06-07 14:40:30 +0200
committerRobin Dupret <robin.dupret@gmail.com>2015-06-07 14:40:30 +0200
commitc429674f8625fccdc7c2a0e685f122de4531552c (patch)
tree26a431ed3c7ae3cd1975fd53e2c5501953d88ba8
parent228e3f01cb7cc5d0b51311c5c0185b878c4853cb (diff)
parent6362805191e8580ccdc9e3e83e6b9aee70a0670a (diff)
downloadrails-c429674f8625fccdc7c2a0e685f122de4531552c.tar.gz
rails-c429674f8625fccdc7c2a0e685f122de4531552c.tar.bz2
rails-c429674f8625fccdc7c2a0e685f122de4531552c.zip
Merge pull request #20462 from yui-knk/fix/guide3
[ci skip] Declare `product` as `_product partial`
-rw-r--r--guides/source/action_view_overview.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md
index 950bb5e358..eff64fad20 100644
--- a/guides/source/action_view_overview.md
+++ b/guides/source/action_view_overview.md
@@ -214,7 +214,8 @@ By default `ActionView::Partials::PartialRenderer` has its object in a local var
<%= render partial: "product" %>
```
-within product we'll get `@product` in the local variable `product`, as if we had written:
+within `_product` partial we'll get `@product` in the local variable `product`,
+as if we had written:
```erb
<%= render partial: "product", locals: { product: @product } %>