Added destroy method

This commit is contained in:
manson committed 2014-06-03 18:56:02 +08:00
1 parent 699968ba25
commit 8a2d0df7e5
2 files changed
+6 -1

No files matched your search

@@ -67,6 +67,12 @@ class Admin::ArchiveFilesController < OrbitAdminController
end
end
def destroy
archive_file = ArchiveFile.find(params[:id])
archive_file.destroy
redirect_to admin_archive_files_path
end
private
def archive_vars
@@ -1 +0,0 @@
$("#<%= dom_id @archive_file %>").remove();