Created
May 12, 2014 14:58
-
-
Save justinphelps/5793d330acf90636e9b9 to your computer and use it in GitHub Desktop.
Sinatra delete
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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