Don't redirect to root_url on aspect destroy
This commit is contained in:
parent
429087ef83
commit
d64fd2d222
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ class AspectsController < ApplicationController
|
||||||
begin
|
begin
|
||||||
current_user.drop_aspect @aspect
|
current_user.drop_aspect @aspect
|
||||||
flash[:notice] = I18n.t 'aspects.destroy.success',:name => @aspect.name
|
flash[:notice] = I18n.t 'aspects.destroy.success',:name => @aspect.name
|
||||||
redirect_to root_url
|
redirect_to :back
|
||||||
rescue RuntimeError => e
|
rescue RuntimeError => e
|
||||||
flash[:error] = e.message
|
flash[:error] = e.message
|
||||||
redirect_to :back
|
redirect_to :back
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue