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:
parent
e47bb1cbe7
commit
6e782f8944
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue