title: Expressjs / Nodejs route works with POST, but not with PUT
body: <p>I'm changing nothing but changing the route method from "Post" to "Put", and for some reason that breaks it. </p>
  
  <p>The POST route works fine:</p>
  
  <p>In route in App.js with POST:</p>
  
  <pre><code> app.post('/editlisting/update',listing.update);
  </code></pre>
  
  <p>the editListing.jade file that submits to it:</p>
  
  <pre><code>extends layout
  
  block content
    div(class="container")
        ul(class="userlist")
        each listing, i in listings
          li
            h1 #{listing.name}
            form(method='post', action='update' class='regform')
              label Name:
              input(type='text', name='name', value='#{listing.name}')
              br
              label Number of Guests:
              input(type='text', name='noGuests', value='#{listing.noGuests}')
              input(type='hidden', name='id', value='#{listing._id}')
              label Price:
              input(type='text', name='price', value='#{listing.price}')
              input(type='submit', value='Update')
              a(href='/') Home
  </code></pre>
  
  <p>The Update method in listing.js (I don't change this at all):</p>
  
  <pre><code>      exports.update = function(req,res){
    var conditions = {_id:req.body.id}
    , update = {
         name: req.body.name,
         noGuests: req.body.noGuests,
         price: req.body.price
       }
    , options = { multi: false };
  
  Listing.update(conditions, update, options, callback);
  
    function callback (err, numAffected) {
      if(err) { throw err; }
      res.redirect('/');
    };
  
   }
  </code></pre>
  
  <p>Then when I try to change it to PUT....</p>
  
  <p>app.js:</p>
  
  <pre><code>app.put('/editlisting/update',listing.update);
  </code></pre>
  
  <p>editListing.Jade:</p>
  
  <p>extends layout</p>
  
  <pre><code>block content
    div(class="container")
        ul(class="userlist")
        each listing, i in listings
          li
            h1 #{listing.name}
            form(method='put', action='update' class='regform')
              label Name:
              input(type='text', name='name', value='#{listing.name}')
              br
              label Number of Guests:
              input(type='text', name='noGuests', value='#{listing.noGuests}')
              input(type='hidden', name='id', value='#{listing._id}')
              label Price:
              input(type='text', name='price', value='#{listing.price}')
              input(type='submit', value='Update')
              a(href='/') Home
  </code></pre>
  
  <p>This causes my browser to display this error when I press the "Update" button:</p>
  
  <p>4| div(class="container") 5| ul(class="userlist") > 6| each listing, i in listings 7| li 8| h1 #{listing.name} 9| form(method='put', action='update' class='regform') Cannot read property 'length' of undefined</p>
  
  <p>And it points to the line in my editListing.jade file:</p>
  
  <pre><code>   each listing, i in listings
  </code></pre>
  
  <p>Does anyone know what the problem is?</p>