Class: CmAdmin::ExportsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- CmAdmin::ExportsController
- Defined in:
- app/controllers/cm_admin/exports_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#export ⇒ Object
10 11 12 13 |
# File 'app/controllers/cm_admin/exports_controller.rb', line 10 def export file_path = CmAdmin::Models::Export.generate_excel(params[:class_name], params, helpers) send_file file_path, disposition: 'attachment' end |