Skip to content

Instantly share code, notes, and snippets.

@moneill
Created May 4, 2012 21:38
Show Gist options
  • Save moneill/2597903 to your computer and use it in GitHub Desktop.
Save moneill/2597903 to your computer and use it in GitHub Desktop.
irb(main):005:0> Person.search("Trinity")
Person Load (0.4ms) SELECT `people`.* FROM `people` WHERE (last_name LIKE '%Trinity%' OR first_name LIKE '%Trinity%' OR id = 'Trinity' OR email LIKE '%Trinity%')
=> [#<Person id: 5, first_name: "Trinity", middle_name: nil, last_name: "Kuvalis", age: 22, email: "samir_wilderman@oconner.com", phone: "509-938-1572 x4260", address_1: "28790 Minerva Highway", address_2: nil, state: "PW", zip: 66274, contact_preference: nil, comments: "Natus porro aut itaque placeat sunt. Odio quas omni...", sources_of_interest: nil, other_sources_of_interest: nil, mailing_subscriptions: nil, lumbar_puncture: nil, study_partner: nil, study_partner_relationship: nil, adc_comments: "Sed porro blanditiis nemo. Sed facilis ea. Ea quis ...", created_at: "2012-05-04 19:53:05", updated_at: "2012-05-04 19:53:05", city: "East Clarissaburgh", active: true>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment