Consider a simple association… class Person has_many :friends end class Friend belongs_to :person end What is the cleanest way to get all persons ...
-
May 28, 2022
- 0 Comments
Using the rails 3 style how would I write the opposite of: Foo.includes(:bar).where(:bars=>{:id=>nil}) I want to find where id is NOT nil. I ...
-
May 9, 2022
- 0 Comments