Class: Dradis::Plugins::HtmlExport::ReportsController
- Inherits:
-
Export::BaseController
- Object
- Export::BaseController
- Dradis::Plugins::HtmlExport::ReportsController
- Defined in:
- app/controllers/dradis/plugins/html_export/reports_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
This method cycles throw the notes in the reporting category and creates a simple HTML report with them.
Instance Method Details
#create ⇒ Object
This method cycles throw the notes in the reporting category and creates a simple HTML report with them.
It uses the template at: ./vendor/plugins/html_export/template.html.erb
9 10 11 12 13 14 15 |
# File 'app/controllers/dradis/plugins/html_export/reports_controller.rb', line 9 def create = export_params.merge(template: @template_file) exporter = Dradis::Plugins::HtmlExport::Exporter.new() html = exporter.export render html: html.html_safe end |