Hi.
I've got form for some model A
, which has got few fields:
- tile
- description
- ...
- colors
colors are selected from multiple select and options are ['red', 'green', 'blue', 'yellow']
. User can choose colors as many as he wants. I don't think that making Color
model and has_many
relationship is good solution here to store colors data in model A
. So question is:
How to store multiple data in db for such multiple select forms?