aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_view_overview.md
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-06-07 19:05:46 +0900
committeryui-knk <spiketeika@gmail.com>2015-06-07 21:28:16 +0900
commit6362805191e8580ccdc9e3e83e6b9aee70a0670a (patch)
tree26a431ed3c7ae3cd1975fd53e2c5501953d88ba8 /guides/source/action_view_overview.md
parent228e3f01cb7cc5d0b51311c5c0185b878c4853cb (diff)
downloadrails-6362805191e8580ccdc9e3e83e6b9aee70a0670a.tar.gz
rails-6362805191e8580ccdc9e3e83e6b9aee70a0670a.tar.bz2
rails-6362805191e8580ccdc9e3e83e6b9aee70a0670a.zip
[ci skip] Declare `product` as `_product partial`
Diffstat (limited to 'guides/source/action_view_overview.md')
-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 } %>