aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/layout.rb
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2005-11-20 18:50:09 +0000
committerMarcel Molina <marcel@vernix.org>2005-11-20 18:50:09 +0000
commit55a3979a098d05158066ea3e53d0cdb66e88638c (patch)
tree0b2a9017d1e00eb1b64aa8cdf55a5596bd2865c0 /actionpack/lib/action_controller/layout.rb
parentdfa8aa0e1e4880347c46d7fc9bd646b5ca907edf (diff)
downloadrails-55a3979a098d05158066ea3e53d0cdb66e88638c.tar.gz
rails-55a3979a098d05158066ea3e53d0cdb66e88638c.tar.bz2
rails-55a3979a098d05158066ea3e53d0cdb66e88638c.zip
Correct docs for automatic layout assignment. Closes #2610.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/layout.rb')
-rw-r--r--actionpack/lib/action_controller/layout.rb4
1 files changed, 3 insertions, 1 deletions
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:
# <tt>app/views/layouts/weblog.rhtml</tt> or <tt>app/views/layouts/weblog.rxml</tt> exists then it will be automatically set as
# the layout for your WeblogController. You can create a layout with the name <tt>application.rhtml</tt> or <tt>application.rxml</tt>
# 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
#