=mail_to "info@somewhere.com", nil, :html_options => {:style => 'font-weight: bold'}
呈现为
<a href="mailto:info@somewhere.com" html_options="stylefont-weight: bold">info@somewhere.com</a>
我的错误是什么?
答案 0 :(得分:7)
摆脱html_options
包装器:
=mail_to "info@somewhere.com", nil, :style => 'font-weight: bold'