# One view is rendered as plain text instead of HTML after deployment

**URL:** <https://www.ruby-forum.com/t/one-view-is-rendered-as-plain-text-instead-of-html-after-deployment/125945>\
**Category:** Rails\
**Created:** [January 14, 2008, 3:00am UTC](https://www.ruby-forum.com/t/one-view-is-rendered-as-plain-text-instead-of-html-after-deployment/125945 "2008-01-14T03:00:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elemental](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6de8d8/32.png) [@elemental](https://www.ruby-forum.com/u/elemental)\
**Post date:** [January 14, 2008, 3:00am UTC](https://www.ruby-forum.com/t/one-view-is-rendered-as-plain-text-instead-of-html-after-deployment/125945/1 "2008-01-14T03:00:50Z")

</div>

Hi all,  
I have a very simple rails app I’m working on. Everything works  
well, except for some reason, my search results page is always  
rendered in Safari and Firefox as plain text. This only happens once  
I upload my app to my server to deploy. All my file permissions are  
correct, and the output HTML is perfect XHTML. As I said earlier,  
every other action in my controller is fine, its just the search  
results, and only on my host. I’m at a loss, and any insight would be  
greatly appreciated.

Thanks  
Todd

---

<div class="post-metadata">

**Author:** ![elemental](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6de8d8/32.png) [@elemental](https://www.ruby-forum.com/u/elemental)\
**Post date:** [January 14, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/one-view-is-rendered-as-plain-text-instead-of-html-after-deployment/125945/2 "2008-01-14T17:45:13Z")

</div>

Just a follow up, everything works fine on Mongrel. Its only Apache  
2.0 and fcgid that causes the problem. Has anyone else experienced  
something similar?

---

<div class="post-metadata">

**Author:** ![elemental](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6de8d8/32.png) [@elemental](https://www.ruby-forum.com/u/elemental)\
**Post date:** [March 16, 2008, 4:05am UTC](https://www.ruby-forum.com/t/one-view-is-rendered-as-plain-text-instead-of-html-after-deployment/125945/3 "2008-03-16T04:05:51Z")

</div>

I solved this by adding “DefaultType text/html” to my .htaccess file to  
get  
around the hosting issue.
