I have a model for users and a model for lists and a model for the
I have a one-to-one relationship with the user and the list so only
one list may be created.
I’m having problems when I try to create the list at the same time I
create the user so they are related by the foreign key on the list.
How would I go about doing this.
right now I’m trying
@user = User.new
But I get an error message saying that list is nil. I know the
problem must be with passing the user_id to the list model, but I have
no idea how to do this.