摘要:
Rails支持三种表间关联关系,一对一,一对多,多对多,你需要在Model中加入声明来标识这些关联:has_one,has_many,belongs_to,has_and_belongs_to_many。 阅读全文
posted @ 2008-04-18 13:21 Cure 阅读(2075) 评论(0) 推荐(0)
|
|||
|
摘要:
Rails支持三种表间关联关系,一对一,一对多,多对多,你需要在Model中加入声明来标识这些关联:has_one,has_many,belongs_to,has_and_belongs_to_many。 阅读全文
posted @ 2008-04-18 13:21 Cure 阅读(2075) 评论(0) 推荐(0) |
|||