From 55a3979a098d05158066ea3e53d0cdb66e88638c Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Sun, 20 Nov 2005 18:50:09 +0000 Subject: Correct docs for automatic layout assignment. Closes #2610. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/CHANGELOG | 2 ++ actionpack/lib/action_controller/layout.rb | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 931b4c4e6d..055da8e7ef 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Correct docs for automatic layout assignment. #2610. [Charles M. Gerungan] + * Always create new AR sessions rather than trying too hard to avoid database traffic. #2731 [Jeremy Kemper] * Update to Prototype 1.4.0_rc4. Closes #2943 (old Array.prototype.reverse behavior can be obtained by passing false as an argument). [Sam Stephenson] diff --git a/actionpack/lib/action_controller/layout.rb b/actionpack/lib/action_controller/layout.rb index caf29ea113..d6a4789bef 100644 --- a/actionpack/lib/action_controller/layout.rb +++ b/actionpack/lib/action_controller/layout.rb @@ -66,7 +66,9 @@ module ActionController #:nodoc: # app/views/layouts/weblog.rhtml or app/views/layouts/weblog.rxml exists then it will be automatically set as # the layout for your WeblogController. You can create a layout with the name application.rhtml or application.rxml # and this will be set as the default controller if there is no layout with the same name as the current controller and there is - # no layout explicitly assigned with the +layout+ method. Setting a layout explicitly will always override the automatic behaviour. + # no layout explicitly assigned with the +layout+ method. Setting a layout explicitly will always override the automatic behaviour + # for the controller where the layout is set. Explicitly setting the layout in a parent class, though, will not override the + # child class's layout assignement if the child class has a layout with the same name. # # == Inheritance for layouts # -- cgit v1.2.3