Last active
January 23, 2019 09:35
-
-
Save manojmj92/83aa5472a418a39b510964afee57bae3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In the controller#action | |
respond_to do |format| | |
format.csv { send_data(generate_csv(column_names, records)) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment