aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/getting_started.textile
diff options
context:
space:
mode:
authorAlan Zeino <alan.zeino@gmail.com>2011-09-12 11:12:09 +1000
committerAlan Zeino <alan.zeino@gmail.com>2011-09-12 11:12:09 +1000
commit6e782f8944122e99091b38b07dcc777f02b1836c (patch)
tree3a86ad097658cf1986721778c4685fe1fde59c5c /railties/guides/source/getting_started.textile
parente47bb1cbe7bb33318f2ed2f1ca021ddd71f6c50f (diff)
downloadrails-6e782f8944122e99091b38b07dcc777f02b1836c.tar.gz
rails-6e782f8944122e99091b38b07dcc777f02b1836c.tar.bz2
rails-6e782f8944122e99091b38b07dcc777f02b1836c.zip
Slight change to reflect current 'destroy' code generated by scaffold in 3.1 release.
Diffstat (limited to 'railties/guides/source/getting_started.textile')
-rw-r--r--railties/guides/source/getting_started.textile4
1 files changed, 2 insertions, 2 deletions
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>