阅读背景:

has_many和belongs_to之间的关联

来源:互联网 

In an example database, associations are as follows: an Owner has_many homes and Home belongs_to Owner. I know I can call owner.homes to get a list of all their homes but in my View I only seem to be able to call the home.owner_id to get anything from the owner object. In an example database, associations are as fol




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

分享到: