This project is archived and is in readonly mode.

#1861 ✓committed
Pascal Ehlert

Nested attribute accessors should ignore new records with truthy _delete key

Reported by Pascal Ehlert | February 3rd, 2009 @ 04:49 PM

Currently when you supply a _delete attribute on new nested records, it will be passed through to the actual model's build method and raise an UnknownArgumentError there.

In my opinion those records should simply be ignored, so that you can delete newly added records the same way that you delete existing ones without much JS or controller magic.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages