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
If you have some one off methods you want to use in the view, you can use helper_method
directly in your mailer.
class MyMailer < ApplicationMailer
def mailer
mail to: '', subject: ''
end
private
helper_method def something_to_use_in_the_view
end
end
something_to_use_in_the_view
will be available in your view.