Skip to content

Instantly share code, notes, and snippets.

@sinefunc
Created June 11, 2010 14:04
Show Gist options
  • Save sinefunc/434506 to your computer and use it in GitHub Desktop.
Save sinefunc/434506 to your computer and use it in GitHub Desktop.
all = Person.all
all.sort_by(:first_name)
created = all.find(creator_id: 1)
limited = created.find(contact_details_id: 30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment