Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

ActiveRecord::NestedAttributes::TooManyRecords error #63

@danimashu

Description

@danimashu

Quikly. When I have in my model:

accepts_nested_attributes_for :foofoo, :allow_destroy => true, :limit => 2

When I do the next I get the error. But it shouldn't show because only one FooFoo is submiting and the limit is 2. Althought I delete the FooFoo, when I overcome the limit, althought I delete the rest before of submit the form, I get the error.

Add FooFoo x 3
Delete FooFoo x 2
Submit Form

Any help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions