Created
September 12, 2012 02:19
-
-
Save Poincare/3703793 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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