title: Ruby: Passing an array to starts_with?
body: <p>I want to check if my url starts with certain strings to save it on to a database afterwards. The strings are stored in an array and since <code>starts_with?</code> accepts multiple values, I want to get all array values in <code>starts_with?</code>.</p>
  
  <pre><code>array = ["www.example.com/content1", "www.example.com/content2", "www.example.com/content3"]
  
  save_url = url.starts_with?() #here I want to insert all array values, but how?
  
  if save_url #I want to check if save_url is true so my entries are somewhat filtered
  DBTable.create(url: url)
  </code></pre>
  
  <p>So my question is how to pass the array values to starts_with? And how to check if save_url is true. I'm not that good at arrays and loops in Ruby so any help is appreciated!</p>