From 538bd3633bd4dc1a32eabdc71d8d2a3ed7b72812 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 5 Aug 2013 16:17:16 +0200 Subject: getting started guide: pass the resource to the URL helper [ci skip] Passing the actual ID is not idiomatic. --- guides/source/getting_started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides') 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

Editing post

-<%= 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? %>

<%= pluralize(@post.errors.count, "error") %> prohibited -- cgit v1.2.3