This attempt is fairly easy, creates a form which takes href of the link as action, method is always POST
and adds the _method
param. The link onclick's, prevents the default event functionality and submits such form instead.
//method_override.js
methodOverride = function(){
handler = function(event){
event.preventDefault();
form = document.createElement('form');