activescaffold/active_scaffold — Issue #115: Deleting Has Many Associations on Update
Author: ksylvest
Created: 2012-01-10 22:59:57+00:00
State: open

WIth the latest gem (3.1.13) and the following controller:

```
class Admin::BrandsController < AdminController
active_scaffold :brand do |c|
c.list.columns = [:name, :status]
c.create.columns.exclude [:labels]
c.update.columns.exclude [:labels]
end
end
```

Any updates to a model are deleting `has_many` associations. In my case, I have two models:

* Brand (belongs to label)
* Label (has many brands)

As a temporary fix, changing the controller syntax to not include any exclude columns works.