OSDN Git Service

fix: local manifest/add helper
[pettanr/pettanr.git] / app / controllers / original_pictures_controller.rb
index 92a5ab8..c902cf9 100644 (file)
@@ -1,6 +1,6 @@
 #原画
 class OriginalPicturesController < ApplicationController
-  before_filter :authenticate_reader, :only => [:show, :history, :count]
+  before_filter :authenticate_reader, :only => [:show, :history]
   before_filter :authenticate_user, :only => [:index, :new, :edit, :create, :update, :destroy]
   before_filter :authenticate_artist, :only => [:index, :new, :edit, :create, :update, :destroy]
   
@@ -45,10 +45,6 @@ class OriginalPicturesController < ApplicationController
     end
   end
   
-  def count
-    list_count
-  end
-  
   def new
     set_new
     respond_to do |format|
@@ -67,6 +63,7 @@ class OriginalPicturesController < ApplicationController
   
   def create
     set_model
+    p  params[:file]
     @imager = if params[:original_picture]
       PettanImager.load set_image params[:original_picture][:file]
     else