belongs-to

The following options can be specified for a belongs-to tag:

NameRequiredDetails

model

required

The name of the model that this object belongs to.

name

optional

Name for the relationship. Used in code whenever this relationship needs to be accessed. Defaults to what you specified at model.

Last updated