{:style => 'font-weight: bold'} displa...">All geek questions in one placeHow 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?+4ruby-on-railsJan Jan 24 '12 at 19:10source share1 answerJust get rid of the html_options shell: =mail_to " info@somewhere.com ", nil, :style => 'font-weight: bold' +7Dylan markow Jan 24 '12 at 19:30source shareSource: https://habr.com/ru/post/1392758/More articles:javascript global variable scope - javascriptQooxdoo: style of individual widgets - javascriptPhonegap JQM fixed position Header / footer moves after disabling iOS keyboard - jqueryRendering blocks side by side with FOP - xsl-foRuntime Issue - "Nested push animation" when using the performSegueWithIdentifier function - iosAndroid TextView NullPointerException with onTouchListener and onClickListener on 4.0 - javaAndroid "Application Framework" Documents / Tuts - androidAloha interface does not display correctly (screenshot) - javascriptHow to create a similar template for this? - c #Web Services with the JAX WS-SUN Library in WAS 7.0 - javaAll Articles
=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?
Just get rid of the html_options shell:
html_options
=mail_to " info@somewhere.com ", nil, :style => 'font-weight: bold'
Source: https://habr.com/ru/post/1392758/More articles:javascript global variable scope - javascriptQooxdoo: style of individual widgets - javascriptPhonegap JQM fixed position Header / footer moves after disabling iOS keyboard - jqueryRendering blocks side by side with FOP - xsl-foRuntime Issue - "Nested push animation" when using the performSegueWithIdentifier function - iosAndroid TextView NullPointerException with onTouchListener and onClickListener on 4.0 - javaAndroid "Application Framework" Documents / Tuts - androidAloha interface does not display correctly (screenshot) - javascriptHow to create a similar template for this? - c #Web Services with the JAX WS-SUN Library in WAS 7.0 - javaAll Articles