Oops, omit the commit field from Rainbow Pool filter URLs

By default, Rails gives this button the name `commit`, so it appears in
the URL the form sends to. By setting the name to `nil`, Rails doesn't
set a `name` attribute on the HTML element, so it's *not* included.
This commit is contained in:
Emi Matchu 2024-09-30 18:05:05 -07:00
parent 4bcc3aaebb
commit 4a431a4ae8
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@
selected: @color&.human_name, include_blank: "Color…"
= f.select :species, @all_species_names,
selected: @species&.human_name, include_blank: "Species…"
= f.submit "Go"
= f.submit "Go", name: nil
= will_paginate @alt_styles, class: "rainbow-pool-pagination"

View file

@ -6,7 +6,7 @@
%legend Filter by:
= form.select :color, @color_names, selected: @selected_color&.human_name, include_blank: "Color…"
= form.select :species, @species_names, selected: @selected_species&.human_name, include_blank: "Species…"
= form.submit "Go"
= form.submit "Go", name: nil
= will_paginate @pet_types, class: "rainbow-pool-pagination"