Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 5 export CSV problem #8

Open
adolfopeccin opened this issue Apr 11, 2018 · 0 comments
Open

Rails 5 export CSV problem #8

adolfopeccin opened this issue Apr 11, 2018 · 0 comments

Comments

@adolfopeccin
Copy link

Hello,
After upgrading to Rails 5, the export CSV has broken.

Fixed it changing

format.csv do
   send_data @dataclip.csv_string, type: Mime::CSV, disposition: "attachment; filename=#{@dataclip.token}.csv"
end

to

format.csv do
   send_data @dataclip.csv_string, type: Mime[:csv], disposition: "attachment; filename=#{@dataclip.token}.csv"
end
@adolfopeccin adolfopeccin changed the title Rails 5 CSV problem Rails 5 export CSV problem Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant