我想更改此查询:
messages = messages.where("name like :search or category like :search", search: "%#{params[:sSearch]}%")
查询mongoid
。
谢谢!
我想更改此查询:
messages = messages.where("name like :search or category like :search", search: "%#{params[:sSearch]}%")
查询mongoid
。
谢谢!