Is there a standard rails helper that converts an array of strings like ["apple", "banana", "pear"]
into "apple, banana, and pear"
for inserting into a sentence?
34
73
Yeah to_sentence ought to work nicely.
-
13Just when I thought I couldn't be more impressed with Rails, I run into this beauty... – Matthew Clark Jun 20 '14 at 20:50