Skip to content
Browse files

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

… in 3.1 release.
  • Loading branch information...
1 parent 4e4783f commit c3751a415fd2ea5ee98ddce1496809fc5a7d4133 @alanzeino alanzeino committed with vijaydev Sep 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/getting_started.textile
View
4 railties/guides/source/getting_started.textile
@@ -1084,8 +1084,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 c3751a4

Please sign in to comment.
Something went wrong with that request. Please try again.