X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fcontrollers%2Fspeeches_controller.rb;h=658f270ea5e95974f244286ff9d806f9d35e3797;hb=85d27b03ef74a6d4775fc345a9f59c9e1736e7c1;hp=2ee6880a6b4891d98346c2874a67d5434fc27dc4;hpb=1cb0bb65ff354e3a6d185001387bf23606ff0afb;p=pettanr%2Fpettanr.git diff --git a/app/controllers/speeches_controller.rb b/app/controllers/speeches_controller.rb index 2ee6880a..658f270e 100644 --- a/app/controllers/speeches_controller.rb +++ b/app/controllers/speeches_controller.rb @@ -4,7 +4,7 @@ class SpeechesController < ApplicationController before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy] else before_filter :authenticate_reader, :only => [ - :index, :show, :by_speech_balloon, :by_writing_format, :count, :count_by_speech_balloon, :count_by_writing_format + :index, :show, :by_author, :by_speech_balloon, :count, :count_by_author ] before_filter :authenticate_user, :only => [:new, :edit, :create, :update, :destroy] before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy] @@ -19,11 +19,11 @@ class SpeechesController < ApplicationController filer_list end - def by_speech_balloon + def by_author filer_list end - def by_writing_format + def by_speech_balloon filer_list end @@ -47,11 +47,7 @@ class SpeechesController < ApplicationController list_count end - def count_by_speech_balloon - list_count - end - - def count_by_writing_format + def count_by_author list_count end