I\'m struggling how to have Ruby on Rails do this query right... in short: to join on a has_many relation but only via the most recent record in that r
In my opinion you can get those max dates first to sure not getting old records and then just filter for the required status. Here was the example of doing first part of it