I have a form where a user can create a new model. The model has many potential attributes, and the form needs to list out all the options a user can select as "active" for this model.
I'm wondering how I should manage the collections for the options. I think there's 2 different ways:
1) Have a collection attached to the view with the form and another collection on the model. As items in the list are selected in the view, the items get copied over to the collection in the model.
2) Have a single collection on the model, and mark items as "selected" or "not selected", so I only have one collection and don't need to compare two different collections when showing what's been selected for that model and what hasn't.
I thought the first option is more "proper", as I'd only have data in the model that is legitimately part of the model and should be sent to the server to save. If I have the whole "selected" thing, I'll need to sort through that data at save time to determine what to send to the server.