Class: Export::WebsiteController
- Inherits:
-
ApplicationApiController
- Object
- ApplicationApiController
- Export::WebsiteController
- Defined in:
- app/controllers/pwb/export/website_controller.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
3 4 5 6 7 8 |
# File 'app/controllers/pwb/export/website_controller.rb', line 3 def all @website = Website.unique_instance headers['Content-Disposition'] = "attachment; filename=\"pwb-website.csv\"" headers['Content-Type'] ||= 'text/csv' render "all.csv" end |