【发布时间】:2012-05-16 03:57:23
【问题描述】:
我有以下几点:
time_range = (1.month.ago.beginning_of_month..1.month.ago.end_of_month)
Comment.where(:created_at => time_range).count
如何在 where 子句中添加如下语句:
.where("user_id is not in (?)",[user_ids]).
如何将两者结合起来?谢谢
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 activerecord