aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-06-24 15:37:56 +0900
committerGitHub <noreply@github.com>2017-06-24 15:37:56 +0900
commit35a25c32da8541994274557e1c8f4a925b536acf (patch)
tree49fd864acf7d4d2c7332b4b1794811af9c0451f8
parent2477e1b5aa66e8308244af17abf56474d4266536 (diff)
parent4d433f8d21972d738f625bb4e41065e179ea01a8 (diff)
downloadrails-35a25c32da8541994274557e1c8f4a925b536acf.tar.gz
rails-35a25c32da8541994274557e1c8f4a925b536acf.tar.bz2
rails-35a25c32da8541994274557e1c8f4a925b536acf.zip
Merge pull request #29555 from ybakos/guides_layouts_and_rendering_minus_leading_underscore
Guides: Clarify partial local variable naming. [ci skip]
-rw-r--r--guides/source/layouts_and_rendering.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md
index caa3d21d23..c96cf61761 100644
--- a/guides/source/layouts_and_rendering.md
+++ b/guides/source/layouts_and_rendering.md
@@ -1171,7 +1171,7 @@ To pass a local variable to a partial in only specific cases use the `local_assi
This way it is possible to use the partial without the need to declare all local variables.
-Every partial also has a local variable with the same name as the partial (minus the underscore). You can pass an object in to this local variable via the `:object` option:
+Every partial also has a local variable with the same name as the partial (minus the leading underscore). You can pass an object in to this local variable via the `:object` option:
```erb
<%= render partial: "customer", object: @new_customer %>