2015-11-07 41 views
0
default_scope {where("valid = ? AND active = ? AND mrp > ?", false, true, 0)} 

我越來越列在where子句是模糊的錯誤「MRP」根據條款Rails的曖昧凡範圍

我怎麼讓它更加明確。我product.mrp試過

回答

0

試試這個: default_scope {其中( 「???your_table_name.valid = AND your_table_name.active = AND your_table_name.mrp>」,假的,真實的,0)}