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`
This commit is contained in:
Matthew Eagar 2017-02-03 11:34:35 -05:00
parent 3497f04d36
commit d9ba3b1e55
1 changed files with 1 additions and 1 deletions

View File

@ -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>