diff options
author | Xavier Noria <fxn@hashref.com> | 2013-08-05 16:17:16 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2013-08-05 16:18:08 +0200 |
commit | 538bd3633bd4dc1a32eabdc71d8d2a3ed7b72812 (patch) | |
tree | 0c9f93c525fdcd094d1cce2e2f888258f08a5e25 /guides | |
parent | 1ad7e1206202deccb4a153f921a74b834bed1139 (diff) | |
download | rails-538bd3633bd4dc1a32eabdc71d8d2a3ed7b72812.tar.gz rails-538bd3633bd4dc1a32eabdc71d8d2a3ed7b72812.tar.bz2 rails-538bd3633bd4dc1a32eabdc71d8d2a3ed7b72812.zip |
getting started guide: pass the resource to the URL helper [ci skip]
Passing the actual ID is not idiomatic.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/getting_started.md | 2 |
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 |