1
0
Fork 0
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:
Michel Grootjans 2012-11-20 14:18:05 +01:00
parent e410b5bff7
commit 62c34f0df2

View file

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