开发者

Dynamic Table in Model

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜