I am trying to develop a RESTful Sinatra application. Now, I know how to respond to a delete request with something like
delete \'/user/:id\' do |id| #do some
Put following line in your code.
use Rack::MethodOverride
It will help you interpret post methods with parameter "_method" with value "delete" as put. Then you can write
_method
delete
delete '/user/:id' do |id|