File.delete error

File.delete tries deletes each of the files specified, so you're telling it to delete RAILS_ROOT, to which it quite correctly replies that RAILS_ROOT is a directory.

Fred