OSDN Git Service

fix: server
[pettanr/pettanr.git] / app / controllers / speech_balloon_templates_controller.rb
index 42b1724..2499e6e 100644 (file)
@@ -44,12 +44,9 @@ class SpeechBalloonTemplatesController < ApplicationController
   end
   
   def destroy
-    @item = SpeechBalloonTemplate.find(params[:id])
-    @item.destroy
-
-    respond_to do |format|
-      format.html { redirect_to :action => :list }
-      format.json { head :ok }
-    end
+    set_model
+    @item = @my_model_class.edit(params[:id], @operators)
+    render_destroy '/' + @my_model_class.path_name
   end
+  
 end