module Admin class BackupsController < ApplicationController # GET /admin/backups/1 def show send_file Backup.db_xlsx, filename: 'backup.xlsx', disposition: :attachment end end end