I have a method I would like to use for testing that just makes a GET request to a specific url. The parameter for the url is just one parameter with multiple values that can be passed seperated by commas.
an ideal request should have the url look like :
url + "/items?item_ids?=1,2,3,4"
My method accepts multiple arguments:
def method(*args)
url = url + "/items?item_ids?=#{args}"
end
The issue I am having is that it will input the args into the url as an array which does not work. Is there a good way to add the arguments to the url not as an array and only seperated by commas? There will be an unknown number of arguments passed into this method.