app/models/imdb_api_string_request.rb
# parse search string into a URL for API request
parse search string into a URL for API request
parse search string into a URL for API request
def create_url_string
        base_url = "https://movie-database-imdb-alternative.p.rapidapi.com/?r=json&s="
        parsed_search_string = @search_string.gsub(" ", "%20")
        @url="#{base_url}#{parsed_search_string}"
    end
def create_url_string base_url = "https://movie-database-imdb-alternative.p.rapidapi.com/?r=json&s=" parsed_search_string = @search_string . gsub ( " " , "%20" ) @url = "#{base_url}#{parsed_search_string}" end
parse search string into a URL for API request
parse search string into a URL for API request