Skip to content

Instantly share code, notes, and snippets.

@emcoding
Created February 9, 2017 20:40
Show Gist options
  • Save emcoding/1c839085b85a9998d123e83016d45248 to your computer and use it in GitHub Desktop.
Save emcoding/1c839085b85a9998d123e83016d45248 to your computer and use it in GitHub Desktop.
Note.find_by(id: 1)
Note.find_by(title: "First Note")
Note.find(1)
Note.find("First Note")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment