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
%form{:action => "/note/delete/#{@note.id}", :method => "post"} %input{:type => 'submit', :name=> "_method", :value => 'delete', :class => 'button'}
You can also trigger the delete route with a button like so