title: Rails XML - Updating server with multiple records
body: <p>I'm using a Rails 2.x server, and trying to handle all interaction using XML.  I've got no problem with updating the database with single XML records (creating/updating/deleting), but I've got a group of new records I'd like to add in one transaction, and I can't get it to work.</p>
  
  <p>The XML I'm submitting looks like this:</p>
  
  <pre><code>    &lt;invitees&gt;
          &lt;invitee&gt;
              &lt;event&gt;32&lt;/event&gt;
              &lt;name&gt;Jack&lt;/name&gt;
          &lt;/invitee&gt;
          &lt;invitee&gt;
              &lt;event&gt;42&lt;/event&gt;
              &lt;name&gt;Alan&lt;/name&gt;
          &lt;/invitee&gt;
      &lt;/invitees&gt;
  </code></pre>
  
  <p>I'm new to Rails; I can handle the basic Ruby/Rails stuff, but handling this is clearly beyond me! The code to handle this is failing, and I don't understand why. This is what I've got:</p>
  
  <pre><code>  @invitees = params[:invitees]
    for @invitee in @invitees
        thisinvitee = Invitee.new(@invitee)
        thisinvitee.save
        end
  </code></pre>
  
  <p>This fails in "Invitee.new", with error:
  NoMethodError (undefined method `stringify_keys!' for #):</p>
  
  <p>Can anyone give me an idea what I'm doing wrong, and how to handle multiple XML records being submitted in a single transaction from a remote client?</p>
  
  <p>Thanks for any help/pointers.</p>