I can send the param x=y in a form with a hidden field like this
<%= form_with(url: '/search', method: 'get') do %>
  <%= text_field_tag(:query) %>
  <%= hidden_field_tag(:x, 'y') %>
  <%= submit_tag("Search") %>
<% end %>
Is it possible to send params in the URL? The following doesn't work
<%= form_with(url: '/search?x=y', method: 'get') do %>
  <%= text_field_tag(:query) %>
  <%= submit_tag("Search") %>
<% end %>
 
    