0

我的代码是这个

users = UserLocation.find(:all, :conditions => "hide_my_location = 0 and datediff(now(), updated_at) < 2 and id != 196")
near_users = users.find(:all, :conditions => "substr(geohash, 1, 11) = 'abcdef'")
count = near_users.count

它在 ruby​​ 1.8.7 中返回错误

参数数量错误(2 为 1) Rails 2.3.6 **activerecord (2.3.6)

4

0 回答 0