Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails: How to add "aria-hidden='true'" with link_to

How can I write this in rails syntax?

<a href="/" class="glyphicon glyphicon-fire logo" aria-hidden="true" ></a>

Probably it's something like this:

<%= link_to '', root_path, class: 'glyphicon glyphicon-fire logo', **???** %>
like image 329
Pascal Avatar asked Nov 02 '15 16:11

Pascal


1 Answers

<%= link_to '', root_path, ...., 'aria-hidden' => true %>

or

<%= link_to '', root_path, ...., aria: {hidden: true} %>
like image 180
Philip Hallstrom Avatar answered Nov 02 '22 16:11

Philip Hallstrom