Fix CSV export

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