Answer the question
In order to leave comments, you need to log in
How to find elements without empty field?
I need to exclude from the request all the data in which one field is filled.
For example: @section=Blog.where(blog_id: nil) so I can take all the articles that have an empty blog_id, but I need it the other way around so that they don’t get into the selection with an empty one.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question