There's an @@exempt_from_layout variable in ActionController, which is supposed to exempt rjs by default, but I believe it doesn't work.
I haven't been able to get it working in my applications. I think there's an open ticket (or possibly a recently closed one) for it. Andrew On 3/6/07, Mislav Marohnić <[EMAIL PROTECTED]> wrote: > On 3/6/07, Alexey Verkhovsky <[EMAIL PROTECTED]> wrote: > > > > Generally, "no layout" seems like a reasonable default for RJS and RXML > templates to me. I have yet to see anyone using those things with a layout, > so the current behavior usually results in extra code to switch it off. > Thoughts? > > RXML isn't just for feeds and data dumps - people use it for XHTML, also. > But I agree with you that RJS responses shouldn't have implicit layout. > > Maybe we should teach respond_to about this: include a template only for the > main response (usually HTML), but implicitly turn of layout for others. > People could then explicitly choose a layout for them. > > > > > --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
