I'm collecting all my user's email addresses for a mass mailing like this:
def self.all_email_addresses
output = ''
User.all.each{|u| output += u.email + ", " }
output
end
However, I end up with an extra ", " on the string of email addresses.
How can I get rid of this / is there a better way to get a comma separated list of email addresses?