def index
    @locations = Location.where("city like ?","%#{params[:q]}%")

    respond_to do |format|
      format.html # index.html.erb