Skip to content

Instantly share code, notes, and snippets.

@justinphelps
Created May 12, 2014 14:58
Show Gist options
  • Save justinphelps/5793d330acf90636e9b9 to your computer and use it in GitHub Desktop.
Save justinphelps/5793d330acf90636e9b9 to your computer and use it in GitHub Desktop.
Sinatra delete
use Rack::MethodOverride
It will help you interpret post methods with parameter "_method" with value "delete" as put. Then you can write
<form action="/search" method="post">
<div style="margin:0;padding:0">
<input name="_method" type="hidden" value="delete" />
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment