Displaying 1 result from an estimated 1 matches for "tune_id".
Did you mean:
tone_id
2008 Sep 18
1
"xxx_id may not be null" when saving many to many joined objects
...tion, and add the Variation to the
tune and title''s :variations arrays.
The problem is that when I save the Tune, I get the following error:
SQLite3::SQLException: variations.title_id may not be NULL:
INSERT INTO "variations" ("updated_at", "title_id", "tune_id", "created_at")
VALUES(''2008-09-18 12:21:52'', NULL, NULL, ''2008-09-18 12:21:52'')
I assumed that Rails would know that the Tune, Variation and Title are all
new objects and perform the save of the Tune and Title, get their IDs to
store in the Vari...