我得到一个 metawhere 连接依赖错误,内容如下:
@companies_user = Company.joins(:contact).where(:contact => {:user_id => current_user.id}).uniq
公司有_很多联系人
换句话说,每个联系人都有一个方法 company_id
我想向那些公司(只有一家)展示联系人的 user_id 等于进行搜索的用户的 user_id。
我得到一个 metawhere 连接依赖错误,内容如下:
@companies_user = Company.joins(:contact).where(:contact => {:user_id => current_user.id}).uniq
公司有_很多联系人
换句话说,每个联系人都有一个方法 company_id
我想向那些公司(只有一家)展示联系人的 user_id 等于进行搜索的用户的 user_id。