=mail_to "info@somewhere.com", nil, :html_options => {:style => 'font-weight: bold'}
Run Code Online (Sandbox Code Playgroud)
呈现为
<a href="mailto:info@somewhere.com" html_options="stylefont-weight: bold">info@somewhere.com</a>
Run Code Online (Sandbox Code Playgroud)
我的错是什么?
摆脱html_options包装:
=mail_to "info@somewhere.com", nil, :style => 'font-weight: bold'
Run Code Online (Sandbox Code Playgroud)