From ed7b6c781a52c75b5c54d19a0b718015c3b59777 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 1 Oct 2019 02:15:54 -0500 Subject: [PATCH] /related_tags: fix category dropdown not working. --- app/views/related_tags/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/related_tags/show.html.erb b/app/views/related_tags/show.html.erb index 6165fb161..bb204ddc1 100644 --- a/app/views/related_tags/show.html.erb +++ b/app/views/related_tags/show.html.erb @@ -4,7 +4,7 @@ <%= search_form_for(related_tag_path) do |f| %> <%= f.input :query, label: "Tag", input_html: { value: params[:search][:query], "data-autocomplete": "tag" } %> - <%= f.input :category, collection: TagCategory.canonical_mapping, include_blank: true, selected: params[:search][:category] %> + <%= f.input :category, collection: TagCategory.categories.map(&:capitalize), include_blank: true, selected: params[:search][:category] %> <%= f.submit "Show" %> <% end %>