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:
parent
3497f04d36
commit
d9ba3b1e55
1 changed files with 1 additions and 1 deletions
|
@ -1155,7 +1155,7 @@ To pass a local variable to a partial in only specific cases use the `local_assi
|
||||||
<%= render article, full: true %>
|
<%= render article, full: true %>
|
||||||
```
|
```
|
||||||
|
|
||||||
* `_articles.html.erb`
|
* `_article.html.erb`
|
||||||
|
|
||||||
```erb
|
```erb
|
||||||
<h2><%= article.title %></h2>
|
<h2><%= article.title %></h2>
|
||||||
|
|
Loading…
Reference in a new issue