From a2b0a7a406bfe8ba62128cf9159ad47d2c89d00b Mon Sep 17 00:00:00 2001 From: Toru Takahashi Date: Tue, 8 May 2018 06:25:53 +0900 Subject: [PATCH] [phase-5]fix missing label for category selection field in term new/edit form --- app/views/glossary_terms/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/glossary_terms/_form.html.erb b/app/views/glossary_terms/_form.html.erb index b1e5e7f..3b9a9e1 100644 --- a/app/views/glossary_terms/_form.html.erb +++ b/app/views/glossary_terms/_form.html.erb @@ -1,5 +1,5 @@

<%= form.text_field :name, size: 80, required: true %>

-

<%= form.collection_select :category_id, GlossaryCategory.all, :id, :name, include_blank: true %> +

<%= form.select :category_id, GlossaryCategory.all.pluck(:name, :id), include_blank: true %>

<%= form.text_area :description, size: "80x10", required: false %>