Ferdinand Ferdinand - 2 months ago 12
CSS Question

Change font color in HAML

I'm new to HAML and Ruby on Rails and I'm trying to change the color of the "You are signed in as..." .

I got -2 on my question and I don't understand why.

I don't understand how to do it and didn't find it in the doc.

Can someone help ?

Thanks

%ul.nav.navbar-nav.navbar-right
-if current_user
%p.navbar-text.some{ style: 'margin-left: 15px', color: "#0000ff"}
You are signed in as #{current_user.email}.
=link_to "Sign out", destroy_user_session_path, method: :delete
-else
%li=link_to "Sign in", new_user_session_path

Answer
%p.navbar-text.some{ style: 'margin-left: 15px; color: #0000ff'; }
Comments