What is the rails activerecord syntax for select records with an empty field? For example, I want to find all the records that the middle_name field is empty (length of the string < 1) for a user database. Thanks!
What is the rails activerecord syntax for select records with an empty field? For
Share
In Rails 2
In Rails 3, you can also do it in following way