I'm working with CodeIgniter REST server by Phil Sturgeon found here and I am struggling to direct towards any other method other than GET. I have modified the code below:
function _ajaxEvent($element) {
$.ajax({
// URL from the link that was 'clicked' on
url: $element.attr('href'),
method: 'PUT'
})
.done(_ajaxDone)
.fail(_ajaxFail);
}
and by theory this should be a PUT request and according to this particular implementation it should call a method similar to users_put, however neither am I able to call the users_put but the network monitor also displays as a GET.
I would really appreciate some advice on this. Looks like I've missed something.