Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はMongoidで次のことをしたいと思います:
user_infos = User.where( :"email".ne => ["",nil])
ユーザーの電子メールが空白ではなく、nil でないのはどこですか?
あなたはこれを行うことができます:
User.where(:email.nin => ["", nil]).to_a