Fix CSV export
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user