app/controllers/imports_controller.rb
def destroy
    if @import.destroy
      flash[:notice] = "Import deleted!"
    else
      flash[:notice] = "Import couldn't be deleted."
    end
    redirect_to imports_path
  end
#status
#client polls this to check on status of import
#such like 1/200 images imported
status
client polls this to check on status of import
such like 1/200 images imported
status client polls this to check on status of import such like 1 / 200 images imported
def destroy
    if @import.destroy
      flash[:notice] = "Import deleted!"
    else
      flash[:notice] = "Import couldn't be deleted."
    end
    redirect_to imports_path
  end
def destroy if @import . destroy flash [ :notice ] = "Import deleted!" else flash [ :notice ] = "Import couldn't be deleted." end redirect_to imports_path end
status
client polls this to check on status of import
such like 1/200 images imported
status client polls this to check on status of import such like 1 / 200 images imported