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

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.


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?

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs