Juan-Carlos
Juan-Carlos

Reputation: 3

HAML Error (New to Rails)

I have a HAML file that is creating an error:

%li#guest_dropdown.dropdown.inverse-dropdown.active
  = link_to 'Guest/Sign In', '#', class: 'dropdown-toggle',
            'data-toggle' => 'dropdown', role: :button, 'aria-expanded' => :false, id: :user_name
  %ul.dropdown-menu{role: :menu}
  %li#user_checkout= link_to 'Shopping Cart', users_checkout_path
    %li.divider{role: :presentation}
    %li#user_dropdown_sign_out= link_to 'Sign In', user_session_path

Upvotes: 0

Views: 30

Answers (1)

LarrySellers
LarrySellers

Reputation: 60

Check your 5th line, that li should be nested inside the ul

Upvotes: 1

Related Questions