如何在带有 Rails 的 Sphinx 中为 :without 选项传递多个选项?我查看了http://freelancing-god.github.com/ts/en/searching.html但没有提出任何建议。
User.search params[:search],
:without => {:id => current_user.id && current_user.other_users.collect {
|other_user| other_user.id} # user cannot be self & user cannot already be a contact
} # This is where I'm having the problem!
帮助表示赞赏!我觉得答案很简单,我只是想念它......也许我累了或什么=/