我試圖從一組使用人收取電子郵件的以下內容:陣列,以單件
def representative_email(group)
group.representatives.collect{ |m|
rep.User.find(m.user_id)
rep.email
}
end
然而,這正產生效果,如:["[email protected]", "[email protected]"]
如何刪除所有[]
和""
並且只留下:
[email protected], [email protected]
實際上,最好用分號替換逗號。