Added destroy method

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

View File

@ -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

View File

@ -1 +0,0 @@
$("#<%= dom_id @archive_file %>").remove();