I suspect the issue is that you've referred directly to a primary key 
called `projects.id` in your SQL, but (from the `belongs_to` call) we can 
see that column is actually called `baseline_id`.

Have you tried changing 'projects.id IN (?)' to 'projects.baseline_id 
<http://projects.id/> IN (?)' in your initial query? That might sort it.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/2265d327-8a03-4eca-bd61-91da536747f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to