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:
parent
b7cccae71e
commit
411613ab20
1 changed files with 1 additions and 1 deletions
|
@ -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| %>
|
||||
|
|
Loading…
Reference in a new issue