Ferdinand Ferdinand - 1 year ago 155
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 ?


-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
%li=link_to "Sign in", new_user_session_path

Answer Source
%p.navbar-text.some{ style: 'margin-left: 15px; color: #0000ff'; }
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download