Rails3には次のヘルパーがいます。
def other_contact_info(shop = false)
shop = shop ? shop : @shop
email = mail_to(shop.email, "Email", :encode => "javascript") if shop.web.present?
web = link_to(shop.web, truncate(shop.web), :target => "_blank") if shop.web.present?
raw [shop.contact, email, web].select(&:present?).join(" · ")
end
はtruncate
何もしません。どうすればこれを修正できますか?
ありがとう。