diff --git a/app/assets/javascripts/bootstrap-editable-rails.js.coffee b/app/assets/javascripts/bootstrap-editable-rails.js.coffee index e42dbeb..80bd025 100644 --- a/app/assets/javascripts/bootstrap-editable-rails.js.coffee +++ b/app/assets/javascripts/bootstrap-editable-rails.js.coffee @@ -26,7 +26,7 @@ jQuery ($) -> $.ajax($.extend({ url : originalUrl data : params - type : 'PUT' # TODO: should be 'POST' when create new object + type : 'PATCH' # TODO: should be 'POST' when create new object dataType: 'json' }, @options.ajaxOptions)) @saveWithoutUrlHook(value)