Uninitialized Constant in Rails Relationship

后端 未结 0 1796
春和景丽
春和景丽 2020-12-18 12:39

Im getting an error when trying to eager load a has_many through relationship.

Error

Precinct.includes(precinct_districts: :districts).first
NameErro         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题