<%= form.label name, "Search", hidden: "" %> <%= form.text_field( name, type: :search, autocomplete: "off", **html_attributes, ) %> <%= form.hidden_field(:p) %> <%= form.button("Apply", type: :submit, name: nil, tabindex: -1) %>