#原画
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]
end
end
- def count
- list_count
- end
-
def new
set_new
respond_to do |format|
def create
set_model
+ p params[:file]
@imager = if params[:original_picture]
PettanImager.load set_image params[:original_picture][:file]
else