mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
bug in example '<%= form_for ...' should be '<% form_for ...'
This commit is contained in:
parent
e410b5bff7
commit
62c34f0df2
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ Next, the partial that this line will render needs to exist. Create a new direct
|
||||||
|
|
||||||
```html+erb
|
```html+erb
|
||||||
<h3>New comment</h3>
|
<h3>New comment</h3>
|
||||||
<%= form_for [@post, @post.comments.build] do |f| %>
|
<% form_for [@post, @post.comments.build] do |f| %>
|
||||||
<p>
|
<p>
|
||||||
<%= f.label :text %><br />
|
<%= f.label :text %><br />
|
||||||
<%= f.text_area :text %>
|
<%= f.text_area :text %>
|
||||||
|
|
Loading…
Reference in a new issue