padrino/padrino-framework — Issue #782: Issue with DELETE
Author: craigmcnamara
Created: 2012-02-10 02:48:44+00:00
State: open

I'm using an API I wrote in Padrino with ActiveResource. So far it's been great, but there is an issue with DELETEs.

Defined: delete "/phone_numbers/:number" do; end

but the output gives me this.

DEBUG - DELETE (0.0010ms) /api/phone_numbers/+18665255092.json - 405 Method Not Allowed

Here is the output from VCR

```yml
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :delete
uri: http://localhost:3002/api/phone_numbers/+18665255092.json
body: !!null
headers:
accept:
- application/json
response: !ruby/struct:VCR::Response
status: !ruby/struct:VCR::ResponseStatus
code: 405
message: Method Not Allowed
headers:
content-type:
- text/html;charset=utf-8
allow:
- GET, HEAD, PUT
content-length:
- '0'
server:
- thin 1.3.1 codename Triple Espresso
body: !!null
http_version: '1.1'
```