Skip to content

Instantly share code, notes, and snippets.

@mjy
Created December 2, 2010 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjy/724736 to your computer and use it in GitHub Desktop.
Save mjy/724736 to your computer and use it in GitHub Desktop.
@specimens = Specimen.find(:all,
:include => [:ce, :otus],
:joins => "LEFT JOIN otu_groups_otus og ON otus.id = og.otu_id",
:conditions => "og.otu_group_id = 124")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment