sqm-dashboards/app/controllers/gps_controller.rb
2023-02-28 19:08:11 -08:00

8 lines
232 B
Ruby

class GpsController < ActionController::Base
def index
respond_to do |format|
format.html
format.csv { send_data Report::Gps.to_csv, disposition: 'attachment', filename: "gps_#{Date.today}.csv" }
end
end
end