This began as a mistake in the Layouts and Rendering in Rails guide:
   http://guides.rubyonrails.org/layouts_and_rendering.html#conditional-layouts

The author expected two layout calls in a controller to have their  
behaviour chained together.

I thought that made a lot of sense, so instead of a patch for the  
docs, I made a patch for action_controller/layout.rb with accompanying  
tests.

Seems like an intuitive addition:
   
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2162-layout-chaining

Cheers,
Jason King

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to