tap/app/controllers/admins_controller.rb

13 lines
302 B
Ruby
Raw Normal View History

2014-12-10 16:17:55 +01:00
require 'csv'
class AdminsController < ApplicationController
def schulden
@users = User.all
respond_to do |format|
format.csv do
headers['Content-Disposition'] = "attachment; filename=\"zeus-schulden\""
headers['Content-Type'] ||= 'text/csv'
end
end
end
end