Where do I put helper methods for ActionMailer views?

前端 未结 6 1271
无人共我
无人共我 2020-12-09 16:41

I have a method that takes an array of strings and joins them so they do something like this:

>> my_arr
=> [\"A\", \"B\", \"C\"]
>> and_join(m         


        
6条回答
  •  感动是毒
    2020-12-09 16:48

    It would be worth looking at the to_sentence extension method for arrays that rails provides.

提交回复
热议问题