When using simple_form and creating a field for a HABTM associated model, we obtain a select box that accepts multiple options.
Is there any way of having multiple select boxes that accept a single option?
If we have categories, for example:
Category1 => <select>options...</select>
Category2 => <select>options...</select>
Category3 => <select>options...</select>
etc...
Assuming the following models:
You can use the following rails helper to show a select box for each category.
Then you can use javascript to dynamically create new select boxes. This railscast explains the basics.