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

[engines guide] improve wording for sentence describing comments/form partial

This commit is contained in:
Ryan Bigg 2011-10-14 07:42:06 +11:00
parent b7cccae71e
commit 411613ab20

View file

@ -247,7 +247,7 @@ Next, there needs to be a form so that comments can be created on a post. To add
<%= render "comments/form" %>
</erb>
Next, the partial that this line will render needs to exist. Create a new directory at +app/views/blorgh/comments+ and in it a new file called +_form.html.erb+ with this content to create the required partial:
Next, the partial that this line will render needs to exist. Create a new directory at +app/views/blorgh/comments+ and in it a new file called +_form.html.erb+ which has this content to create the required partial:
<erb>
<%= form_for [@post, @post.comments.build] do |f| %>