title: How to check whether an array contains a substring within a string in Ruby?
body: <p>I have an array of strings:</p>
  
  <pre><code>string_array = ['memberid', 'membershiptype', 'date']
  </code></pre>
  
  <p>Now I need to check whether or not this array contains <code>'id'</code>, and I want it to return true.</p>
  
  <p>I know I can do <code>string_array.include? 'memberid'</code>, but I need to find a substring within that string of <code>'id'</code>.</p>