From 6362805191e8580ccdc9e3e83e6b9aee70a0670a Mon Sep 17 00:00:00 2001 From: yui-knk Date: Sun, 7 Jun 2015 19:05:46 +0900 Subject: [PATCH] [ci skip] Declare `product` as `_product partial` --- guides/source/action_view_overview.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } %>