I have the following and it explodes when the method โzeroโ appears? How can I have no substitution in this case by default?
message.gsub("{FirstName}", contact.first_name).
gsub("{LastName}", contact.last_name).
gsub("{Title}", contact.title).
gsub("{Company}", contact.company_name.clear_company).
gsub("{Colleagues}", colleagues.to_sentence).
For example, I get an error when contact.title is zero. How can I prevent this in this case?
source
share