From e3b0a5e2d7771577c57f285b0231e13bed279364 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sun, 8 Apr 2012 17:04:44 -0500 Subject: [PATCH] fix bug on closet_hangers#destroy in html format --- app/controllers/closet_hangers_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/closet_hangers_controller.rb b/app/controllers/closet_hangers_controller.rb index e9491b0b..f3b104d2 100644 --- a/app/controllers/closet_hangers_controller.rb +++ b/app/controllers/closet_hangers_controller.rb @@ -6,6 +6,7 @@ class ClosetHangersController < ApplicationController def destroy @closet_hanger = current_user.closet_hangers.find params[:id] @closet_hanger.destroy + @item = @closet_hanger.item respond_to do |format| format.html { redirect_after_destroy! } format.json { render :json => true }