有没有办法在mail_to
视图助手中使用内置编码的rails,并在我的yml语言环境文件中获取该信息?
例如,这就是我想要的
mail_to "me@domain.com", "My email", :encode => "javascript"
# => <script type="text/javascript">eval(decodeURIComponent('%64%6f%63...%27%29%3b'))</script>
但是我想把它放在我的yml locales文件的中间。我的yml看起来像这样
title:
desc:
we would love to hear from you so email us at me@domain.com and
we'll get back to you asap