0

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.

Community
  • 1
  • 1
Opy Osegs
  • 197
  • 1
  • 1
  • 13

1 Answers1

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