OSDN Git Service

fix panel test
[pettanr/pettanr.git] / app / controllers / speech_balloon_templates_controller.rb
index 13dba70..c95f03b 100644 (file)
@@ -5,7 +5,7 @@ class SpeechBalloonTemplatesController < ApplicationController
   # GET /speech_balloon_templates
   # GET /speech_balloon_templates.json
   def index
-    @speech_balloon_templates = SpeechBalloonTemplate.all
+    @speech_balloon_templates = SpeechBalloonTemplate.list
 
     respond_to do |format|
       format.html # index.html.erb
@@ -16,7 +16,7 @@ class SpeechBalloonTemplatesController < ApplicationController
   # GET /speech_balloon_templates/1
   # GET /speech_balloon_templates/1.json
   def show
-    @speech_balloon_template = SpeechBalloonTemplate.find(params[:id])
+    @speech_balloon_template = SpeechBalloonTemplate.show(params[:id])
 
     respond_to do |format|
       format.html # show.html.erb