阅读背景:

具有多个模型的对象(Rails)

来源:互联网 

BACKGROUND: I'm thinking conceptually about how to reference a single object that can belong to more than one model. For instance, if I have a School and Employer model - a User could theoretically have attended and be employed at the same School. Ideally both relationships to point to the same object. I'm thinking conceptually about how




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: