Read the document and find the description of method_override
. The mechanism is identical to Rails. If your browser does not support PUT
and DELETE
, just send an additional parameter named _method
with a value of PUT
or DELETE
.
Note that in the Modular application (your class inherits Sinatra::Base
), method_override
disabled by method_override
. You need to enable it manually.
source share