OSDN Git Service

redraw page title
[pettanr/pettanr.git] / app / controllers / scroll_panels_controller.rb
index 68a3c6d..dc94d9b 100644 (file)
@@ -4,7 +4,7 @@ class ScrollPanelsController < ApplicationController
     before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
   else
     before_filter :authenticate_reader, :only => [
-      :index, :show, :by_panel, :by_scroll, :by_author, :count, :count_by_panel, :count_by_scroll, :count_by_author
+      :index, :show, :by_panel, :by_scroll, :by_author, :play, :count, :count_by_panel, :count_by_scroll, :count_by_author, :play
     ]
     before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
     before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
@@ -30,6 +30,10 @@ class ScrollPanelsController < ApplicationController
     filer_list
   end
   
+  def play
+    filer_list
+  end
+  
   def show
     set_show
     respond_to do |format|
@@ -54,6 +58,10 @@ class ScrollPanelsController < ApplicationController
     list_count
   end
   
+  def count_play
+    list_count
+  end
+  
   def new
     form_new
   end