This project is archived and is in readonly mode.
has_one through incorrect id add
-
glebm
Confirmed
-
gerardc
Why would you add 1 as the device for x and not a Component object?
-
gerardc
Edit to my previous comment:
Why would you set x.device to hold the value 1 instead of a Device object
/newb
-
ronin-131274 (at lighthouseapp)
If I wanted to assign a component to a device.
-
Dan Pickett
this looks as though it doesn't honor the contract in associations.
x.device = 1 is not a proper assignment. You must assign x's device association to a device object.
x.device_id = 1 should successfully assign the foreign key for you.