Class: Export::WebsiteController

Inherits:
ApplicationApiController
  • Object
show all
Defined in:
app/controllers/pwb/export/website_controller.rb

Instance Method Summary collapse

Instance Method Details

#allObject



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