Creating a String from an Array
Problem
You want to create a string from an array.
Solution
Use JavaScript’s Array toString() method:
["one", "two", "three"].toString()
# => 'one,two,three'
Discussion
toString()
is a standard JavaScript method. Don’t forget the parentheses.