4
=mail_to "[email protected]", nil, :html_options => {:style => 'font-weight: bold'}
呈現爲如何使用html_options使用rails mail_to helper?
<a href="mailto:[email protected]" html_options="stylefont-weight: bold">[email protected]</a>
什麼是我的錯?
的作品,但我不知道這是否是完全有效的,但... – Jan
爲什麼不會是有效的?文檔(http://edgeapi.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-mail_to)明確指出,第三個參數是一個散列,用於傳遞其他HTML選項。 –
抱歉,你說得對,當然。我讀錯了。 – Jan