Tôi đã điều sau đây:Làm cách nào để kết hợp hai điều kiện trong mệnh đề where?
time_range = (1.month.ago.beginning_of_month..1.month.ago.end_of_month)
Comment.where(:created_at => time_range).count
Làm thế nào tôi có thể thêm vào mệnh đề where với một tuyên bố như:
.where("user_id is not in (?)",[user_ids]).
Làm thế nào tôi có thể kết hợp hai? Cảm ơn
Lỗi đó w ActiveRecord :: StatementInvalid: PG :: Lỗi: ERROR: lỗi cú pháp tại hoặc gần "in" – AnApprentice