Skip to content

Instantly share code, notes, and snippets.

@Poincare
Created September 12, 2012 02:19
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 Poincare/3703793 to your computer and use it in GitHub Desktop.
Save Poincare/3703793 to your computer and use it in GitHub Desktop.
#makes life much easier
Person = People::Models::Person
#gives all current Persons
Person.all
#add me, then search for me
dhaivat = Person.new(:first_name => "Dhaivat", :last_name => "Pandya", :description => "Best person ever")
dhaivat.save
Person.all
Person.find(1)
Person.where(:first_name => "Dhaivat")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment