I’m having major trouble with a somewhat self-referencing has_many and
belongs_to set of models.
item.manufacturer correctly returns an object of type Vendor. However,
item.manufacturer.name raises an exception even though the name value
is set correctly.
I’ve been debugging and googling and responding to stack overflow
peeps but still to no avail.
I’m having major trouble with a somewhat self-referencing has_many and
belongs_to set of models.
item.manufacturer correctly returns an object of type Vendor. However,
item.manufacturer.name raises an exception even though the name value
is set correctly.
Show us the code where the error occurs and the full error message and
trace.
If you can show it in the console then copy/paste the console output
here.