diff --git a/app/components/admin/search_component.html.erb b/app/components/admin/search_component.html.erb index 0dea2c65b..af3fe396d 100644 --- a/app/components/admin/search_component.html.erb +++ b/app/components/admin/search_component.html.erb @@ -1,9 +1,9 @@
- <%= form_for(User.new, url: url, as: :user, method: :get) do |f| %> + <%= form_tag(url, method: :get) do |f| %>
<%= text_field_tag :name_or_email, params[:name_or_email].to_s, placeholder: t("admin.shared.user_search.placeholder") %>
- <%= f.submit t("admin.shared.user_search.button"), class: "button" %> + <%= submit_tag t("admin.shared.user_search.button"), class: "button" %>
<% end %>