如何在html_options中使用rails mail_to helper?

Jan*_*Jan 4 ruby-on-rails

=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)

我的错是什么?

Dyl*_*kow 7

摆脱html_options包装:

=mail_to "info@somewhere.com", nil, :style => 'font-weight: bold'
Run Code Online (Sandbox Code Playgroud)