Don't redirect to root_url on aspect destroy

This commit is contained in:
Raphael 2011-01-04 18:00:49 -08:00
parent 429087ef83
commit d64fd2d222

View file

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