public
Created

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12
#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")

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.