time_range = (1.month.ago.beginning_of_month..1.month.ago.end_of_month) Feed.find(:all,:conditions => ['created_at = ? AND id not in (?)',time_range,[1,2,3]]).count
有任何想法吗?谢谢
time_range = (1.month.ago.beginning_of_month.to_date..1.month.ago.end_of_month.to_date)