app/controllers/imports_controller.rb
#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 update
    if @import.update_attributes(params[:import])
      flash[:notice] = "Successfully updated import."
      redirect_to import_url(@import)
    else
      flash[:error] = "Something went wrong updating the import"
      render :action => 'edit'
    end
  end
def update if @import . update_attributes ( params [ :import ] ) flash [ :notice ] = "Successfully updated import." redirect_to import_url ( @import ) else flash [ :error ] = "Something went wrong updating the import" render :action => 'edit' end 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