From d64fd2d2224ce1e3b69dfe23c6cec401405ac4d1 Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 4 Jan 2011 18:00:49 -0800 Subject: [PATCH] Don't redirect to root_url on aspect destroy --- app/controllers/aspects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/aspects_controller.rb b/app/controllers/aspects_controller.rb index 5d6b69373..aa0747f55 100644 --- a/app/controllers/aspects_controller.rb +++ b/app/controllers/aspects_controller.rb @@ -50,7 +50,7 @@ class AspectsController < ApplicationController begin current_user.drop_aspect @aspect flash[:notice] = I18n.t 'aspects.destroy.success',:name => @aspect.name - redirect_to root_url + redirect_to :back rescue RuntimeError => e flash[:error] = e.message redirect_to :back