阅读背景:

与Rails中相同模型的多个关系

来源:互联网 

Let's say I have two models, Classes and People. A Class might have one or two People as instructors, and twenty people as students. So, I need to have multiple relationships between the models -- one where it's 1->M for instructors, and one where it's 1->M for students.Let's say I have two models, Classes and People




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

分享到: