aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/layouts_and_rendering.md
diff options
context:
space:
mode:
authorMatthew Eagar <meagar@gmail.com>2017-02-03 11:34:35 -0500
committerMatthew Eagar <meagar@gmail.com>2017-02-03 11:46:08 -0500
commitd9ba3b1e55366aa73bd90723c59474d250f7eaee (patch)
treed09be1fd969d2e95a80cc6274e078e896575b66d /guides/source/layouts_and_rendering.md
parent3497f04d3682d4c9becc63565c962e91b0d7aea2 (diff)
downloadrails-d9ba3b1e55366aa73bd90723c59474d250f7eaee.tar.gz
rails-d9ba3b1e55366aa73bd90723c59474d250f7eaee.tar.bz2
rails-d9ba3b1e55366aa73bd90723c59474d250f7eaee.zip
Fix typo in guide: _articles should be _article
The guide contains a typo in the "local_assigns" section, where rendering a model named 'Article' via `render @articles` is shown to render a partial called `_articles.html.erb`, when in fact the necessary partial name is `_article.html.erb`
Diffstat (limited to 'guides/source/layouts_and_rendering.md')
-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 c8702f54fc..293c99fc8f 100644
--- a/guides/source/layouts_and_rendering.md
+++ b/guides/source/layouts_and_rendering.md
@@ -1155,7 +1155,7 @@ To pass a local variable to a partial in only specific cases use the `local_assi
<%= render article, full: true %>
```
-* `_articles.html.erb`
+* `_article.html.erb`
```erb
<h2><%= article.title %></h2>