Hi Jeremy, My attempts to use nested_attributes with a one_to_one relationship are resulting in null values to the (non-null) foreign key. Why is Sequel first inserting the provided attributes and only then updating the record with the foreign key?
Here is a gist with a simplified example and two results, with and without the foreign key constraint. You'll see that it first inserts the record with the provided name and then updates the record with the item_id. https://gist.github.com/2994884 Best, Jamie Hodge -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
