Permalink
Browse files

Slight change to reflect current 'destroy' code generated by scaffold…

… in 3.1 release.
  • Loading branch information...
1 parent e47bb1c commit 6e782f8944122e99091b38b07dcc777f02b1836c @alanzeino alanzeino committed Sep 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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>

0 comments on commit 6e782f8

Please sign in to comment.