From b7607e22840b28270ccd991cc248574d57fcb9df Mon Sep 17 00:00:00 2001 From: Toks Date: Wed, 5 Jun 2013 13:12:18 -0400 Subject: [PATCH] fix artist deletion notifications --- app/controllers/artists_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/artists_controller.rb b/app/controllers/artists_controller.rb index 4ab9a897c..2512ef962 100644 --- a/app/controllers/artists_controller.rb +++ b/app/controllers/artists_controller.rb @@ -88,7 +88,7 @@ class ArtistsController < ApplicationController raise User::PrivilegeError end @artist.update_attribute(:is_active, false) - respond_with(@artist, :notice => "Artist deleted") + redirect_to(artist_path(@artist), :notice => "Artist deleted") end def undelete @@ -97,7 +97,7 @@ class ArtistsController < ApplicationController raise User::PrivilegeError end @artist.update_attribute(:is_active, true) - respond_with(@artist, :notice => "Artist undeleted") + redirect_to(artist_path(@artist), :notice => "Artist undeleted") end def revert