开发者

Dynamic Table in Model

开发者 https://www.devze.com 2022-12-11 18:30 出处:网络
Is it possible to make a model that uses a differ开发者_如何学运维ent table dependent on an association.The question is not very clear.... anyway you should consider rethinking about your classes stru

Is it possible to make a model that uses a differ开发者_如何学运维ent table dependent on an association.


The question is not very clear.... anyway you should consider rethinking about your classes structure and using "polymorphic associations" (if needed):

  • http://railscasts.com/episodes/154-polymorphic-association
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号