At 8:08 AM -0700 10/5/11, iGbanam wrote: >Try adjusting your default url options from the application controller. > >class ApplicationController < ActionController::Base > def default_url_options(options = nil) > {:format => "html"} > end >end
My problem is that I wanted to use :xhtml format just for a few selected mime-types and :html for the rest. I ended up forking haml and adding a feature to do this: At 1:25 AM -0400 9/9/11, Stephen Bannasch wrote: >Here's a new pull request: https://github.com/nex3/haml/pull/427 that fixes >the problem I was having with invalid XML being generated in a Rails 3 app. > >If the mime_type of the ActionView::Template being rendered is `text/xml` >then a format of `:xhtml` will be used even if the global output format >is set to `:html4` or `:html5`. -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.