Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… in 3.1 release.
  • Loading branch information...
commit c3751a415fd2ea5ee98ddce1496809fc5a7d4133 1 parent 4e4783f
@alanzeino alanzeino authored vijaydev committed
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>
Please sign in to comment.
Something went wrong with that request. Please try again.