def destroy
      @directory = Cmtool::Directory.find(params[:id])
      @directory.destroy
      flash[:notice] = I18n.t('cmtool.action.destroy.successful', :model => Cmtool::Directory.model_name.human)
      respond_to do |format|
        format.html { redirect_to(cmtool.directories_url) }
        format.xml  { head :ok }
      end
    end
def destroy
      @directory = Cmtool::Directory.find(params[:id])
      @directory.destroy
      flash[:notice] = I18n.t('cmtool.action.destroy.successful', :model => Cmtool::Directory.model_name.human)
      respond_to do |format|
        format.html { redirect_to(cmtool.directories_url) }
        format.xml  { head :ok }
      end
    end
DELETE /directories/1
 DELETE /directories/1.xml