title: How to implement mongoid rails simple search
body: <p>With rails 3.2, mongoid</p>
  
  <p>I don't want full-text search, I just wanna search one field of the model.</p>
  
  <p>E.g
  I have a "People" scaffold with just a name field.</p>
  
  <p>And I want to have a search form. For instance, I search "peter", if there's an exact match(case insensitive) of the search term - "peter" in the database, then I want it immediately redirect to peter show page without listing further search results.</p>
  
  <p>However, if there's no exact match, then suggested results(in the database) will be shown.</p>
  
  <p>Please kindly advise. </p>