OSDN Git Service

speach rename to speech
[pettanr/pettanr.git] / app / controllers / speech_templates_controller.rb
@@ -1,24 +1,24 @@
-class SpeachTemplatesController < ApplicationController
+class SpeechTemplatesController < ApplicationController
   before_filter :authenticate_user!, :only => [:index, :show]
   before_filter :authenticate_admin!, :only => [:list, :browse]
 
-  # GET /speach_templates
-  # GET /speach_templates.json
+  # GET /speech_templates
+  # GET /speech_templates.json
   def index
-    @speach_templates = SpeachTemplate.all
+    @speech_templates = SpeechTemplate.all
 
     respond_to do |format|
       format.html # index.html.erb
-      format.json { render json: @speach_templates }
+      format.json { render json: @speech_templates }
     end
   end
 
   def list
-    @speach_templates = SpeachTemplate.all
+    @speech_templates = SpeechTemplate.all
 
     respond_to do |format|
       format.html { render layout: 'system' }
-      format.json { render json: @speach_templates }
+      format.json { render json: @speech_templates }
     end
   end