OSDN Git Service

fix:server
[pettanr/pettanr.git] / app / controllers / balloons_controller.rb
index d7d4936..f9079cc 100644 (file)
@@ -4,18 +4,18 @@ class BalloonsController < ApplicationController
     before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
   else
     before_filter :authenticate_reader, :only => [
-      :index, :show, :by_speech_balloon, :count, :count_by_speech_balloon
+      :index, :show, 
+      :by_author, :by_speech_balloon, :by_speech_balloon_template, :by_system_picture
     ]
     before_filter :authenticate_user, :only => [:new, :edit, :create, :update, :destroy]
     before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
   end
-  before_filter :authenticate_admin!, :only => [:list, :browse]
   
-  def self.model
-    Balloon
+  def index
+    filer_list
   end
   
-  def index
+  def by_author
     filer_list
   end
   
@@ -23,8 +23,17 @@ class BalloonsController < ApplicationController
     filer_list
   end
   
+  def by_speech_balloon_template
+    filer_list
+  end
+  
+  def by_system_picture
+    filer_list
+  end
+  
   def show_html_format format
     format.html {
+      @item.boosts 'post'
       @balloon = @item
     }
   end
@@ -38,14 +47,6 @@ class BalloonsController < ApplicationController
     end
   end
   
-  def count
-    list_count
-  end
-  
-  def count_by_speech_balloon
-    list_count
-  end
-  
   def new
     form_new
   end