Skip to content

has_one vs has_many: how to limit "Add new" to only accept 1 nested object #4614

Closed
@vraravam

Description

Looking through a lot of comments/issues related to this, I couldn't find the solution. I have used the has_many feature in AA to build out a form. But, the underlying domain has only 1 object (its a belongs_to/has_one relationship. Is there a way to limit the number of times the user can click on "Add new" for this nested form?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions