diff --git a/app/views/items/_form.html.erb b/app/views/items/_form.html.erb index f3ae7a92d9..eef492f5e2 100644 --- a/app/views/items/_form.html.erb +++ b/app/views/items/_form.html.erb @@ -8,7 +8,12 @@ <%= f.input :category, label: "Category", wrapper: :vertical_input_group do %> - <%= f.input_field :category, class: "form-control" %> + <%= f.input_field :category, class: "form-control", list:"category" %> + + <%- Item.all.map(&:category).uniq.each do |category| %> + + <% end %> + <% end %> <%= f.button :submit, class:"btn btn-info"%>