निम्न खोजक IS NULL
प्रिंट करता है।ActiveRecord नल एसक्यूएल खोजक
User.where(:id =>nil) #=> []
User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IS NULL ORDER BY created_at DESC
लेकिन मैं बाहर IS NOT NULL
एक मुद्रित करने के लिए कैसे नहीं मिल सकता है?
डुप्लिकेट http://stackoverflow.com/questions/4252349/rail-3-where- शर्त-using-not-null – Vache
इस प्रश्न का आपका उत्तर है - http://stackoverflow.com/questions/4252349/rail-3- जहां-हालत-उपयोग-न-शून्य – ipr101