aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--guides/source/getting_started.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md
index 12eb88f018..fb52eb225a 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -888,7 +888,7 @@ it look as follows:
```html+erb
<h1>Editing post</h1>
-<%= form_for :post, url: post_path(@post.id), method: :patch do |f| %>
+<%= form_for :post, url: post_path(@post), method: :patch do |f| %>
<% if @post.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@post.errors.count, "error") %> prohibited