X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fcontrollers%2Fspeech_balloon_templates_controller.rb;h=2499e6e5b252fb55356e610476b107b6e60130aa;hb=ea14998dcdc4eda196bcb920b17b6653710e97ba;hp=42b1724e9950ee8d2783fd4307d1baf328b9bfb8;hpb=8c860bbc3faaff8c7a458b28f1cac7e30ff490df;p=pettanr%2Fpettanr.git diff --git a/app/controllers/speech_balloon_templates_controller.rb b/app/controllers/speech_balloon_templates_controller.rb index 42b1724e..2499e6e5 100644 --- a/app/controllers/speech_balloon_templates_controller.rb +++ b/app/controllers/speech_balloon_templates_controller.rb @@ -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