title: Rails ActiveRecord Query a field based on word contains but not partial word
body: <p>I know we have LIKE option to search partial word, exact word match and also word contains (but having some problem, let me explain that below)</p>
  
  <pre><code> User.where("name like ?", "%john%")  
   # above code will search the name column and it will return records even if it 
     matches the character partially i.e "joh" also return a record.
  
   User.where("name like ?", "john")
   # above code will return a record if 'john' word is in the name column. 
     It will match the exact word.
  
   User.where("name like ?", "% john %")
   # this will return a record if name column contains 'john' text i.e "Sample john victor".
     But if a record has "John victor" then it won't find this record because '% john %' 
     can only match middle of the words except first and last word in the name column 
     since we having space in both front and end of the word in our search i.e "% john %"
  </code></pre>
  
  <p>Can someone help me to find a record based on word contains in a string of one column in a Table?</p>