before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
else
before_filter :authenticate_reader, :only => [
- :index, :show, :by_story, :by_sheet, :by_author, :count, :count_by_story, :count_by_sheet, :count_by_author
+ :index, :show, :by_story, :by_sheet, :by_author
]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_story
- list_count
- end
-
- def count_by_sheet
- list_count
- end
-
- def count_by_author
- list_count
- end
-
def new
form_new
end
@binder = @my_model_class.binder_model.edit(@item.binder_id, @operators) if @item.binder_id
@panel = @my_model_class.destination_model.show(@item.destination_id, @operators) if @item.destination_id
- leaf_render_create play_scroll_path(@binder)
+ leaf_render_create play_story_path(@binder)
end
def update
# swapable hidden panel
#@panel = @my_model_class.destination_model.show(@item.destination_id, @operators) if @item.destination_id
- leaf_render_update ot, play_scroll_path(@binder)
+ leaf_render_update ot, play_story_path(@binder)
end
def destroy