Phoenix 说模式没有关联,即使我给了它

问题描述

在关于上下文 (https://hexdocs.pm/phoenix/contexts.html#cross-context-data) 的 Phoenix 教程部分中,我收到此错误

enter image description here

令人惊讶,因为我添加了这个关联:

enter image description here

我错过了什么?

解决方法

问题在于

field :user_id,:id

删除那条线使它起作用。