I have two tables items
and sub_category
and I have has_and_belongs_to_many
relation between two. I have to select values for sub categories from different select boxes and include all those values to the item subcategory.
I have a form where I have one drop down box and multiple select box and both these contain sub categories and I have to include the values from both to the item subcategory. How can I do this?