Links

has-many

The following options can be specified for a has-many tag:
Name
Required
Details
model
required
The name of the model of which this object has many.
name
required
Name for the relationship. Used in code whenever this relationship needs to be accessed. Recommended value is the pluralized form of the model name on the other side of the relationship, e.g. "assets".
inverse-of
optional
The name of the "belongs-to" reference on the other object. This is required when there are multiple relationships between the same two models.
Last modified 5mo ago