I have array output I am outputting to the Show page like this:
@store.products.map(&:title)
But the output to the page includes the [" "] that I don't want, like:
Product: ["Hair Pins"]
How can I get rid of the brackets and quotes? Why isn't it just returning the string without the characters?
I have tried strip, chomp, and those don't work. Is there a regular expression I can use to clip off the brackets and quotes?
Thank you!
prather than the output ofto_s