Because nome
is an observable, you have to unwrap it in your function:
self.confirmEdit = function(){
$.ajax({
url: 'sections/' + self.sectionToEdit().id,
type: 'PUT',
data: self.sectionToEdit().nome(),
});
}
Otherwise, jQuery treats the observable as an object map, including calling all functions on the object.