From 6e782f8944122e99091b38b07dcc777f02b1836c Mon Sep 17 00:00:00 2001
From: Alan Zeino <alan.zeino@gmail.com>
Date: Mon, 12 Sep 2011 11:12:09 +1000
Subject: Slight change to reflect current 'destroy' code generated by scaffold
 in 3.1 release.

---
 railties/guides/source/getting_started.textile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'railties/guides/source/getting_started.textile')

diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index 1587b20c18..219fa5afde 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -1083,8 +1083,8 @@ def destroy
   @post.destroy
 
   respond_to do |format|
-    format.html  { redirect_to(posts_url) }
-    format.json  { render :json => {}, :status => :ok }
+    format.html { redirect_to posts_url }
+    format.json { head :ok }
   end
 end
 </ruby>
-- 
cgit v1.2.3

