2015-05-09 56 views
0

我有一個創建一個錯誤HAML文件:HAML錯誤(新建Rails)的

%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 
+0

內。在未來,它會有助於包含錯誤文本。 –

回答

1

檢查5日線,即li應該被嵌套在ul

+0

就是這樣!謝謝 –