OSDN Git Service

speach rename to speech
[pettanr/pettanr.git] / app / controllers / speeches_controller.rb
similarity index 57%
rename from app/controllers/speaches_controller.rb
rename to app/controllers/speeches_controller.rb
index 35a5595..7e53b73 100644 (file)
@@ -1,24 +1,24 @@
-class SpeachesController < ApplicationController
+class SpeechesController < ApplicationController
   before_filter :authenticate_user!, :only => [:index, :show]
   before_filter :authenticate_admin!, :only => [:list, :browse]
 
-  # GET /speaches
-  # GET /speaches.json
+  # GET /speeches
+  # GET /speeches.json
   def index
-    @speaches = Speach.all
+    @speeches = Speech.all
 
     respond_to do |format|
       format.html # index.html.erb
-      format.json { render json: @speaches }
+      format.json { render json: @speeches }
     end
   end
 
   def list
-    @speaches = Speach.all
+    @speeches = Speech.all
 
     respond_to do |format|
       format.html { render layout: 'system' }
-      format.json { render json: @speaches }
+      format.json { render json: @speeches }
     end
   end
 end