L
L
lavezzi12015-08-12 20:43:36
Ruby on Rails
lavezzi1, 2015-08-12 20:43:36

Span in the link, how?

%i
     = active_link_to "", root_path, class: "fa fa-home"
        %span.tooltip{ data-title => "Text" }

%i
     = active_link_to "", root_path, class: "fa fa-home" do
        %span.tooltip{ data-title => "Text" }

Here's what I tried, it doesn't work. How do you decide this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vsuhachev, 2015-08-13
@vsuhachev

Your second option only without the empty parameter:

= active_link_to root_path, class: "fa fa-home" do
  %span.tooltip{ data-title => "Text" }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question