title: Sinatra PUT method not working?
body: <p>For some reason, my "PUT" method isn't caught by Sinatra using this html. Can someone help me spot the mistake? When I use a "post" action in my controller, it works just the way it is expected...</p>
  
  <pre><code>&lt;form method="post" action="/proposals/&lt;%=@proposal.id%&gt;/addItem"&gt;
  &lt;input type="hidden" name="_method" value="put"/&gt;
    &lt;div&gt;
    &lt;label for="item_id"&gt;Item list&lt;/label&gt;
  &lt;select title="Item ID" id="item_id" name='item_id'&gt;
    &lt;%@items.each do |item|%&gt;
      &lt;option value="&lt;%=item.id%&gt;"&gt;&lt;%=item.name%&gt;&lt;/option&gt;
    &lt;%end%&gt;
  &lt;/select&gt;                                   
  &lt;input type="submit" value="Add"/&gt;&lt;/div&gt;
  &lt;label for="new_item_name"&gt;Create new item&lt;/label&gt;
  &lt;input type="text" id="new_item_name" name="new_item_name" /&gt;
  &lt;input type="submit" value="Create"/&gt;
  &lt;/form&gt;
  </code></pre>