diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index ecc3f95a76..7c7b3a4c01 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -1165,7 +1165,7 @@ it look as follows: ```html+erb
<%= form.label :commenter %>
<%= form.text_field :commenter %>
@@ -1834,7 +1834,7 @@ following:
<%= render @article.comments %>
<%= form.label :commenter %>
<%= form.text_field :commenter %>
@@ -1864,7 +1864,7 @@ Let us also move that new comment section out to its own partial. Again, you
create a file `app/views/comments/_form.html.erb` containing:
```html+erb
-<%= form_with(model: [ @article, @article.comments.build ]) do |form| %>
+<%= form_with(model: [ @article, @article.comments.build ], local: true) do |form| %>
<%= form.label :commenter %>
<%= form.text_field :commenter %>