aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorRajinder Yadav <info@devmentor.org>2012-02-26 12:30:18 -0500
committerRajinder Yadav <info@devmentor.org>2012-02-26 12:30:18 -0500
commit3689b57e0d0a0c66611a2be7a74a3ea6f444469c (patch)
treee61ef1ad4b1a677c315cb387d1a8dfb134954f56 /railties/guides
parent1e25d6217cfac78e0ca1c1e97c539b05dc472dd6 (diff)
downloadrails-3689b57e0d0a0c66611a2be7a74a3ea6f444469c.tar.gz
rails-3689b57e0d0a0c66611a2be7a74a3ea6f444469c.tar.bz2
rails-3689b57e0d0a0c66611a2be7a74a3ea6f444469c.zip
layout affects views not methods
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/layouts_and_rendering.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile
index be352cfe3d..1943fa185e 100644
--- a/railties/guides/source/layouts_and_rendering.textile
+++ b/railties/guides/source/layouts_and_rendering.textile
@@ -359,7 +359,7 @@ class ProductsController < ApplicationController
end
</ruby>
-With this declaration, all of the methods within +ProductsController+ will use +app/views/layouts/inventory.html.erb+ for their layout.
+With this declaration, all of the views belonging to controller, +ProductsController+ will use +app/views/layouts/inventory.html.erb+ for their layout.
To assign a specific layout for the entire application, use a +layout+ declaration in your +ApplicationController+ class: