before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
else
before_filter :authenticate_reader, :only => [
- :index, :show, :by_panel, :by_scroll, :by_author, :play :play
+ :index, :show, :by_panel, :by_scroll, :by_author
]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
filer_list
end
- def play
- filer_list
- end
-
def show
set_show
respond_to do |format|
end
def create
- @my_model_class = self.class.model
+ set_model
@item = @my_model_class.new
@item.supply_default
@item.attributes = params[@item.item_name]
end
def update
- @my_model_class = self.class.model
+ set_model
@item = @my_model_class.edit(params[:id], @operators)
ot = @item.t
@item.attributes = params[@item.item_name]