title: Like and where condition in ruby
body: <p>What is the syntax for like in Ruby on Rails? This is something I'm trying to do: </p>
  
  <p>I am trying to find all the last name from table which starts with egm so something <code>like %egm%</code>.  I know how to do using find_by_sql but just curious to know the Ruby way.</p>
  
  <pre><code>s = Person.find_by_last_name('nan%')
  </code></pre>