页面里有个这样的写法
Client.where("orders_count = ?", params[:orders])
我在调用时却显示
ArgumentError: wrong number of arguments (2 for 1)
from /usr/local/lib/ruby/gems/2.2.0/gems/mongoid-5.0.0/lib/mongoid/criteria.rb:449:in `where'
from (eval):2:in `where'
from (irb):23
什么原因?,怎么用代?的传递参数,