1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Slight change to reflect current 'destroy' code generated by scaffold in 3.1 release.

This commit is contained in:
Alan Zeino 2011-09-12 11:12:09 +10:00
parent e47bb1cbe7
commit 6e782f8944

View file

@ -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>