Read more

Rails 2.3.x sometimes renders localized views with the wrong content type

Dominik Schöler
October 29, 2012Software engineer at makandra GmbH

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.

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

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.

Posted by Dominik Schöler to makandra dev (2012-10-29 11:02)