RJS templates are the only template type that are exempt from layout  
by default.

Don't you think it makes sense to add rxml to the list of exempt  
extensions? I'd assume most people would be surprised to see their  
XML embedded in the middle of their (most probably) rhtml layout.

http://dev.rubyonrails.org/svn/rails/trunk/actionpack/lib/ 
action_controller/base.rb:

       def template_exempt_from_layout?(template_name =  
default_template_name)
         template_name =~ /\.rjs$/ ||  
(@template.pick_template_extension(template_name) == :rjs rescue false)
       end

I've overrided it in my own application.rhtml as below but I'm  
thinking that this should probably be the default behaviour.

     def template_exempt_from_layout?(template_name =  
default_template_name)
       super || template_name =~ /\.rxml$/
     end

-- tim lucas


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core
-~----------~----~----~----~------~----~------~--~---

Reply via email to