I'm attempting to build a form which allows a user to select multiple Labels when creating a new Item, without allowing the user to create new Labels.
Here's how my models are set up:
Item
has_many :item_labels
has_many :labels, :through => :item_labels
ItemLabel
belongs_to :item
belongs_to :label
Label
has_many :item_labels
has_many :items, :through => :item_labels
Any ideas how I could create this sort of relationship within a form without allowing the user to create new labels? (Label creation is only done by the admin.)
Specifically, how should I set up the form in the view, and are there any changes I should make to my models? (accepts_nested_parameters or other directives)