Rails 2.3.x sometimes renders localized views with the wrong content type
Under certain (unknown) circumstances, Rails will give localized files an invalid content-type in the Response header. For me, after requesting corporate_information
and rendering corporate_information.de.html.haml
, Rails sent a content-type of de.html
instead of the expected text/html
.
There are some Show archive.org snapshot discussions Show archive.org snapshot on this topic that offer workarounds, but none solved it for me.
The issue occurred with Rails 2.3.5.