filter :has_open_offers_in, as: :select, label: 'Has buyer offers?', collection: ['Yes', 'No']
filter :expiring_tonight_in, as: :select, label: 'Expires tonight?', collection: ['Yes', 'No']
如果我按has_open_offers_in = 'No'
和expiring_tonight_in = 'No'
进行过滤,在我的数据库中我没有使用此过滤器的情况,那么当我使用此params过滤时,请使用以下内容在postgres中执行查询:{{1}但是postgres会抛出错误,因为不支持("bid_sales"."id" IN (A LOT OF IDS) AND "bid_sales"."id" IN ())
Postgres错误示例:
IN ()