Task.find(:all, :include => :projects)Task.find(:all, :include => [:projects, :comments])Task.find(:all, :include => [:projects, {:comments => :user}])
本文共 203 字,大约阅读时间需要 1 分钟。
Task.find(:all, :include => :projects)Task.find(:all, :include => [:projects, :comments])Task.find(:all, :include => [:projects, {:comments => :user}])
转载于:https://my.oschina.net/themorecolor/blog/129542