Rails mongoid 的 array 类型字段用正则表达式

sforce100 · December 07, 2012 · 1776 hits

any_in({:type_data=>{"21"=>"111"}, :type_name=>"name"}).first type_data 类型的 Array,"21"=>"111"用正则表达式"21"=>/111/ 为什么查出来为空呢 用的是 mongoid

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.