4
=mail_to "[email protected]", nil, :html_options => {:style => 'font-weight: bold'}
は私のミスで何html_optionsでrails mail_toヘルパーを使用するには?
<a href="mailto:[email protected]" html_options="stylefont-weight: bold">[email protected]</a>
としてレンダリング?
作品が、私は、これは完全に有効であるかどうかわからない、しかし... – Jan
はなぜそれが有効ではないでしょうか? docs(http://edgeapi.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-mail_to)は、3番目のパラメータが追加のHTMLオプションを渡すハッシュであることを明確に述べています。 –
申し訳ありませんが、あなたはもちろんです。私はそれを間違って読んだ。 – Jan