title: Rails Nokogiri xpath().each only storing first node
body: <p>I'm trying to import ~10K of XML nodes into my Rails DB as records via a database seed. Here's my code to import the XML code:</p>
  
  <pre><code>doc = Nokogiri::XML(File.read("./db/seed/recipes.xml"))
  
  doc.xpath('//Item').each do |i|
    Recipe.find_or_create_by_title(title: i.xpath('title').inner_text)
  end
  </code></pre>
  
  <p>and sample XML data:</p>
  
  <pre><code>&lt;Item&gt;
    &lt;title&gt;Fried Eggs and Collard Greens Over Polenta&lt;/title&gt;
  &lt;/Item&gt;
  </code></pre>
  
  <p>Yet when I try to seed it only seeds the first node (even though there are 15k). I'm a total XML noob. Any ideas on why this might be happening?</p>