I’ve two models in my app that are joined together using a many -to-many association (both “has an belongs to” other model). Browsing on internet I’ve seen that there’s thousands of examples that shows how set up view and controller, but all of these use checkbox_tag inside view, while I need a dropdown menu in my view, since objects that I’ve to display are more than 100, so you understand why I cannot use checkbox.
Have you experienced the same problem? In witch way do you have build view?
I’ve two models in my app that are joined together using a many -to-many
Share
What you’d want to do is use a multi-select, so instead of a checkbox like so:
You’d want to do
The
:multiple => trueis the important part to convert it to a multi-select box.