samedi 27 juin 2015

Is it possible to add html-attributes without values in rails link_to?

I want to output an a-tag like this:

<a href="#" itemscope class="features__cta button>Stuff</a>

I know I can add html-attributes like this to the tag, but how do I add one without a value to it?

<%= link_to t('features.cta'), t('features.cta_link') , class:
'features__cta button',  itemprop: "priceSpecification" %>

Aucun commentaire:

Enregistrer un commentaire