OSDN Git Service

fix test
[pettanr/pettanr.git] / app / controllers / speech_balloon_templates_controller.rb
index 132aae7..96f337d 100644 (file)
@@ -27,7 +27,6 @@ class SpeechBalloonTemplatesController < ApplicationController
   
   def show_html_format format
     format.html {
-      @speech_balloon_template = @item
     }
   end
   
@@ -61,8 +60,8 @@ class SpeechBalloonTemplatesController < ApplicationController
   end
   
   def destroy
-    @speech_balloon_template = SpeechBalloonTemplate.find(params[:id])
-    @speech_balloon_template.destroy
+    @item = SpeechBalloonTemplate.find(params[:id])
+    @item.destroy
 
     respond_to do |format|
       format.html { redirect_to :action => :list }