named_scope :incomplete?, lambda { |user_id, todo_id|
{ :select => 1, :conditions =>
[ "#{user_id} not in (select user_todos.user_id from user_todos) and
#{todo_id} not in (select user_todos.todo_id from user_todos)" ]
}
}
結果はゼロです。真に戻してほしい。やらなきゃ!?
また、これを書くためのより良い方法はありますか?