# RE: Output non-HTML (CSV) from Rails

**URL:** <https://www.ruby-forum.com/t/re-output-non-html-csv-from-rails/95032>\
**Category:** Rails\
**Created:** [January 11, 2006, 5:27pm UTC](https://www.ruby-forum.com/t/re-output-non-html-csv-from-rails/95032 "2006-01-11T17:27:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 11, 2006, 5:27pm UTC](https://www.ruby-forum.com/t/re-output-non-html-csv-from-rails/95032/1 "2006-01-11T17:27:02Z")

</div>

Adam D. wrote:

> you need to change the Content-Type that you send to the browser to be  
> of type CSV. Something like Content-type: application/vnd.ms-excel
> 
> [http://railswiki.pdxruby.org/HowtoChangeTheContentType.html](http://railswiki.pdxruby.org/HowtoChangeTheContentType.html)

Excellent.

Thanks Adam!

–  
Matt C. Wagner  
Information Security Analyst

Network Intrusion Detection  
Security Operations Center  
Corporate Information Security  
Wells Fargo Bank
