Default Mime-Type Template

On 12/18/07, Adam S. [email protected] wrote:

I have added the following to my application controller so that rails
sets the content_type header to application/xhtml+xml if the browser
accepts that mime-type and defaults to text/html otherwise.

snipped example code

is :xhtml then the layout is not included for some reason. Does anyone
know why not and what I can do to get it included for the :xhtml
format without having to write respond_to blocks in all of my actions?

Hi Adam,
did you make any progress on these issues?

I prefer xhtml too, especially during development. Browser errors on
malformed markup is a great way to catch errors quickly.

Regards,
Isak