Fix CSV export
This commit is contained in:
@@ -114,7 +114,7 @@ class ContestantsController < ApplicationController
|
|||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.csv do
|
format.csv do
|
||||||
response.headers["Content-Type"] = "text/csv"
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user