# Custom Mime Types with Templates

**URL:** <https://www.ruby-forum.com/t/custom-mime-types-with-templates/104797>\
**Category:** Rails\
**Created:** [May 22, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/custom-mime-types-with-templates/104797 "2007-05-22T17:49:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmarkow](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bc8723/32.png) [@dmarkow](https://www.ruby-forum.com/u/dmarkow)\
**Post date:** [May 22, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/custom-mime-types-with-templates/104797/1 "2007-05-22T17:49:44Z")

</div>

I have added a custom Mime Type for Excel files (xls). I’d like Rails to  
know to render these as XML in a “… .builder” view file. How can I  
tell Rails to treat the “XLS” extension just like an “XML” request?
