问题描述
在关于上下文 (https://hexdocs.pm/phoenix/contexts.html#cross-context-data) 的 Phoenix 教程部分中,我收到此错误:
令人惊讶,因为我添加了这个关联:
我错过了什么?
解决方法
问题在于
field :user_id,:id
删除那条线使它起作用。
在关于上下文 (https://hexdocs.pm/phoenix/contexts.html#cross-context-data) 的 Phoenix 教程部分中,我收到此错误:
令人惊讶,因为我添加了这个关联:
我错过了什么?
问题在于
field :user_id,:id
删除那条线使它起作用。