def update
    @department = Department.find(params[:id])

    respond_to do |format|
      if @department.update_attributes(params[:department])