草庐IT

HasManyThroughAssociationNotFound

全部标签

ruby-on-rails - rails : HasManyThroughAssociationNotFoundError

我在使用has_manythrough关联时遇到问题。我一直收到这个异常:Article.find(1).warehouses.buildActiveRecord::HasManyThroughAssociationNotFoundError:Couldnotfindtheassociation:entriesinmodelArticle这些是涉及的模型:classArticle:entriesendclassWarehouse:entriesendclassEntry这是我的模式:create_table"articles",:force=>truedo|t|t.string"art