OSDN Git Service

fix: op upload and destroy
[pettanr/pettanr.git] / app / controllers / artists_controller.rb
index 492e4ce..e5e582d 100644 (file)
@@ -53,12 +53,9 @@ class ArtistsController < ApplicationController
   end
   
   def destroy
-    @artist = Artist.edit(params[:id], @operators)
-    @artist.destroy
-    
-    respond_to do |format|
-      format.html { redirect_to artists_url }
-      format.json { head :ok }
-    end
+    set_model
+    @item = @my_model_class.edit(params[:id], @operators)
+    render_destroy '/home/configure'
   end
+  
 end