diff options
author | Alan Zeino <alan.zeino@gmail.com> | 2011-09-12 11:12:09 +1000 |
---|---|---|
committer | Alan Zeino <alan.zeino@gmail.com> | 2011-09-12 11:12:09 +1000 |
commit | 6e782f8944122e99091b38b07dcc777f02b1836c (patch) | |
tree | 3a86ad097658cf1986721778c4685fe1fde59c5c /railties/guides/source/getting_started.textile | |
parent | e47bb1cbe7bb33318f2ed2f1ca021ddd71f6c50f (diff) | |
download | rails-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.textile | 4 |
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> |