1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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>