app/controllers/googledrive_controller.rb
# get a list of the user's google drive files in a specified folder (default to "root") and respond with json
get a list of the user's google drive files in a specified folder (default to "root") and respond with json
get a list of the user ' s google drive files in a specified folder ( default to " root " ) and respond with json
def index
    @parent_folder = 'root'
    @parent_folder = params[:folder] if params[:folder]
    @response = list_files_in_folder(@parent_folder)
    respond_to do |format|
      format.json { render :index }
    end
  end
def index @parent_folder = 'root' @parent_folder = params [ :folder ] if params [ :folder ] @response = list_files_in_folder ( @parent_folder ) respond_to do | format | format . json { render :index } end end
get a list of the user's google drive files in a specified folder (default to "root") and respond with json
get a list of the user ' s google drive files in a specified folder ( default to " root " ) and respond with json
# default folder to search is the "root" folder # if given a folder param, use that