Skip to content

Instantly share code, notes, and snippets.

@cloud-on-prem
Created June 7, 2011 13:11
Show Gist options
  • Save cloud-on-prem/1012204 to your computer and use it in GitHub Desktop.
Save cloud-on-prem/1012204 to your computer and use it in GitHub Desktop.
I have these models:
Note has_one Author
Author belongs_to Note
Some notes do not have authors in my database.
Now, I need to pull all Notes such that I only get records which have Authors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment