<% ContentTag.order(:name).each do |tag| %>
<li><%= tag.name %></li>
<% end %>
This code warns "Unknown HTML tag <name>. This is not a standard HTML element. [html-no-unknown-tag]". That's because it believes tag is the ActionView helper method, but the line above has defined tag as a local variable.
One could argue that it should warn that we're shadowing the helper method with a local variable. But at the very least, the current warning is not correct.
This code warns "Unknown HTML tag
<name>. This is not a standard HTML element. [html-no-unknown-tag]". That's because it believestagis the ActionView helper method, but the line above has definedtagas a local variable.One could argue that it should warn that we're shadowing the helper method with a local variable. But at the very least, the current warning is not correct.