1

这样的事情可能吗?

Product.price_greater_than(10000).or_tags_name_equals('luxury')

wiki在这方面没有多大帮助......

我在维基上看到:

  User.id_or_age_lt_or_username_or_first_name_begins_with(10)
  => "id < 10 OR age < 10 OR username LIKE 'ben%' OR first_name like'ben%'"

我真的不明白,“本”到底是怎么出现的???有人可以帮忙吗?

4

1 回答 1

0

Probably it was a typo. This should work:

User.id_or_age_lt_or_username_or_first_name_begins_with([10, "ben"])
于 2011-04-22T11:32:00.160 回答