app/controllers/imports_controller.rb
def maps
    @upload_user = User.find(@import.uploader_user_id)
    if @import.layer_id == -99
      @layer = @import.maps.first.layers.first
    elsif @import.layer_id != nil
      @layer = Layer.find(@import.layer_id)
    end
    

    #show finished import, or alter show?
  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 maps
    @upload_user = User.find(@import.uploader_user_id)
    if @import.layer_id == -99
      @layer = @import.maps.first.layers.first
    elsif @import.layer_id != nil
      @layer = Layer.find(@import.layer_id)
    end
  end
def maps @upload_user = User . find ( @import . uploader_user_id ) if @import . layer_id == - 99 @layer = @import . maps . first . layers . first elsif @import . layer_id != nil @layer = Layer . find ( @import . layer_id ) 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
#show finished import, or alter show?