From 4a431a4ae88b8397a76143458aa819bdac5188f3 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Mon, 30 Sep 2024 18:05:05 -0700 Subject: [PATCH] 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. --- app/views/alt_styles/index.html.haml | 2 +- app/views/pet_types/index.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/alt_styles/index.html.haml b/app/views/alt_styles/index.html.haml index 215a13ef..30601753 100644 --- a/app/views/alt_styles/index.html.haml +++ b/app/views/alt_styles/index.html.haml @@ -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" diff --git a/app/views/pet_types/index.html.haml b/app/views/pet_types/index.html.haml index 7a73919b..f3419b23 100644 --- a/app/views/pet_types/index.html.haml +++ b/app/views/pet_types/index.html.haml @@ -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"