class EraserController < ApplicationController require 'ftools' def filechoices? false end def start_choices [] end def get_title 'deletes pic edits' end def extras rx=Regexp.new('(.*\d.*(JPG|GIF|PNG))$', Regexp::IGNORECASE) files=Giver.new. get_filename_part('images',rx) files.each do |f| logger.info "deleting #{f}" File.delete f end end end