class Wco::VideosController

def destroy

def destroy
  @video = Wco::Video.find params[:id]
  authorize! :destroy, @video
  flag = @video.delete
  if flag
    flash[:notice] = "deleted video"
  else
    flash[:alert] = "Cannot delete video: #{@video.errors.messages}"
  end
  redirect_to :action => 'index'
end