title: How to delete a row from CSV in ruby with Table.delete_if()
body: <p>I'm reading in a csv file     </p>
  
  <pre><code>require 'csv'
  
  recipients = CSV.read('recipients.csv', headers: true)
  
  found = []
  if User.find_by(email: recipients['email'])
    found &lt;&lt; recipients['email']
  end
  
  table = CSV.table('recipients.csv')
  
  table.delete_if do |t|
    found.each { |f| t['email'] == f['email']}
  end
  
  
  CSV.open('/tmp/users.csv', 'wb') do |w|
    w &lt;&lt; found.to_csv
  end
  </code></pre>
  
  <p>The following line: <code>found.each { |f| t['email'] == f['email']}</code>
  results in a </p>
  
  <p><code>TypeError: no implicit conversion of String into Integer
  from lib/scripts/foo.rb:13:in</code>[]'`</p>
  
  <p>It's obvious I don't grok how to use <code>delete_if</code> and how to resolve the type mismatch in this case. 
  So, help is very much appreciated.</p>