I'm trying to update data on backbone.But my save() function post insead of put.

```
editEvent:function(e){
         var departments=new Department();
       departments.set("departmentName",this.$el.find(".departmentName").val());
            departments.save();

            this.render();

        },

```

departmentModel

```
    var Department = Backbone.Model.extend({
    urlRoot: "/rest/department",
    idAttribute:'departmentID'

    }
});
return Department;

```

template

```
    <th>
    <span>{{user.department.departmentName}}</span>
    <input data-placement="top" title="Boş geçilemez!" class="form-control text-center departmentName" type='text'
           style='display: none;'  value='{{user.department.departmentName}}'/>
</th>

```