Fix CSV export
All checks were successful
CI / scan_ruby (push) Successful in 20s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 13s
CI / test (push) Successful in 40s

This commit is contained in:
sto
2025-12-11 17:27:34 +01:00
parent 31fe8789ce
commit 76553d4cbc

View File

@@ -114,7 +114,7 @@ class ContestantsController < ApplicationController
respond_to do |format|
format.csv do
response.headers["Content-Type"] = "text/csv"
response.headers["Content-Disposition"] = "attachment; filename=#{contest.friendly_id}_results.csv"
response.headers["Content-Disposition"] = "attachment; filename=#{@contest.friendly_id}_results.csv"
end
end
end