aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorAlexey Vakhov <vakhov@gmail.com>2012-03-09 19:28:38 +0400
committerAlexey Vakhov <vakhov@gmail.com>2012-03-09 19:32:43 +0400
commit2562404624bc7d314d05842f4e238aa145b5c78f (patch)
tree6cdf5eefe84faea948ceac6c6c7c794e25379c7a /actionpack/lib
parent3288107d308b85cdb724d3c961e74ec9d7ef4d3a (diff)
downloadrails-2562404624bc7d314d05842f4e238aa145b5c78f.tar.gz
rails-2562404624bc7d314d05842f4e238aa145b5c78f.tar.bz2
rails-2562404624bc7d314d05842f4e238aa145b5c78f.zip
Fix comment about layout folders lookup
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/abstract_controller/layouts.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/abstract_controller/layouts.rb b/actionpack/lib/abstract_controller/layouts.rb
index 92e93cbee7..b02ee5ead3 100644
--- a/actionpack/lib/abstract_controller/layouts.rb
+++ b/actionpack/lib/abstract_controller/layouts.rb
@@ -136,8 +136,8 @@ module AbstractController
# layout "weblog_standard"
# end
#
- # If no directory is specified for the template name, the template will by default be looked for in <tt>app/views/layouts/</tt>.
- # Otherwise, it will be looked up relative to the template root.
+ # The template will be looked always in <tt>app/views/layouts/</tt> folder. But you can point
+ # <tt>layouts</tt> folder direct also. <tt>layout "layouts/demo"</tt> is the same as <tt>layout "demo"</tt>.
#
# Setting the layout to nil forces it to be looked up in the filesystem and fallbacks to the parent behavior if none exists.
# Setting it to nil is useful to re-enable template lookup overriding a previous configuration set in the parent: