form multipart: true, direct_upload: true do |f|
f.input :regions, as: :tags, collection: Investor.regions.keys
end
My model enum looks like this for the enum: enum regions: [:berlin, :dusseldorf, :hamburg, :hannover]
And finally I get no options being listed in my dropdown and a web error that there are no matching ids for my laber for (check screenshot bellow)
To Reproduce
You can create any model with my enum definition, then create a form for that model with the input as I started describing and that should be enough to test.
Expected behavior
Select dropdown showing collection options and enabling to select multiple ones
Describe the bug I have a normal form as follows:
My model enum looks like this for the enum:
enum regions: [:berlin, :dusseldorf, :hamburg, :hannover]
And finally I get no options being listed in my dropdown and a web error that there are no matching ids for my laber for (check screenshot bellow)
To Reproduce You can create any model with my enum definition, then create a form for that model with the input as I started describing and that should be enough to test.
Expected behavior Select dropdown showing collection options and enabling to select multiple ones
Screenshots