My question is about how to convert array elements to string in ruby 1.9 without getting the brackets and quotation marks. I\'ve got an array (DB extract), from which I want to
You can use the .join method.
For example:
my_array = ["Apple", "Pear", "Banana"] my_array.join(', ') # returns string separating array elements with arg to `join` => Apple, Pear, Banana