Skip to content

Commit

Permalink
Slight change to reflect current 'destroy' code generated by scaffold…
Browse files Browse the repository at this point in the history
… in 3.1 release.
  • Loading branch information
alanzeino authored and vijaydev committed Sep 13, 2011
1 parent 4e4783f commit c3751a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/guides/source/getting_started.textile
Expand Up @@ -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>
Expand Down

0 comments on commit c3751a4

Please sign in to comment.