Why dosn't the to first examples work as expected??
Do I have to put groups I don't want to be deleted inn as hidden
fields in my form? (I of course dosn't want every groups to be deleted
as in the example above).
Why dosn't the to first examples work as expected??
article_groups is an AssociationCollection, for which
all the usual array methods work. But only some of these
methods like delete and clear have database side-effects.
The rest operate only on the in-memory array object.
So to make delete_if work on the database objects you
either have to write