Rails 4 deleting nested attributes, works on create but not on edit/update
So I'm working from this Railscast . And I'm aware that there have been some changes in Rails 4 for Strong parameters. First relevant question . Second relevant question I've quadruple checked my implementation, but can't see where I'm going wrong. As it is at the moment, ticking the "destroy" box when submitting the patient initially (i.e. the create method) works as intended, and will delete any medication that has a checked box and permitting any that does not (from the three form inputs it provides). However when I subsequently edit that patient, any medications that don't get checked to