Rule: actionview-no-silent-helper
Action View helpers like link_to, form_with, and content_tag must use output ERB tags (<%= %>) so their rendered HTML is included in the page. Using silent ERB tags (<% %>) discards the helper's output entirely.
Action View helpers generate HTML that needs to be rendered into the template. When a helper is called with a silent ERB tag (<% %>), the return value is evaluated but silently discarded, meaning the generated HTML never appears in the output. This is almost always a mistake and can lead to confusing bugs where elements are missing from the page with no obvious cause. Using <%= %> ensures the helper's output is properly rendered.
<%= link_to "Home", root_path %><%= form_with model: @user do |f| %>
<%= f.text_field :name %>
<% end %><%= button_to "Delete", user_path(@user), method: :delete %><%= content_tag :div, "Hello", class: "greeting" %><% link_to "Home", root_path %><% form_with model: @user do |f| %>
<%= f.text_field :name %>
<% end %><% button_to "Delete", user_path(@user), method: :delete %><% content_tag :div, "Hello", class: "greeting" %>