{:style => 'font-weight: bold'} displa...">

How to use rails mail_to helper with html_options?

=mail_to " info@somewhere.com ", nil, :html_options => {:style => 'font-weight: bold'} 

displayed as

 <a href="mailto: info@somewhere.com " html_options="stylefont-weight: bold"> info@somewhere.com </a> 

What's my mistake?

+4
source share
1 answer

Just get rid of the html_options shell:

 =mail_to " info@somewhere.com ", nil, :style => 'font-weight: bold' 
+7
source

Source: https://habr.com/ru/post/1392758/


All Articles