I am a bit confused as to why this line <li><a href= /login class="glyphicon glyphicon-log-in" ></a></li> is throwing the warning line ignoring attempt to close li with a when i run my test. I have read multiple questions similar to this  such as Ignoring attempts to close x with y but as far as i understand that line of html code is valid. If i replace it with <li><%= link_to login_path, login_path %><li> , i don't understand how to treat and  remove this warning. I also dont want to silence the warnings that rails test throw off because of this.
            Asked
            
        
        
            Active
            
        
            Viewed 69 times
        
    0
            
            
        1 Answers
1
            Isn't it supposed to be <li><a href="/login" class="glyphicon glyphicon-log-in" ></a></li>. You forgot to give "" to your href.
        Johan Pranata
        
- 317
 - 2
 - 9
 
- 
                    Thanks @Johan Pranata, the `" "` made the difference. – Opy Osegs Jun 17 '16 at 20:46