我在尝试:
User.where(:admin => [nil,false],["name LIKE ?","%#{params[:query]}%"])
但是我收到这个错误:
Syntax error,unexpected ')',expecting tASSOC
那么如何正确列出括号中的哪些子句?
User.where(["name LIKE ?","%#{params[:query]}%"]).where(:admin => [nil,false])