diff options
author | Rajinder Yadav <info@devmentor.org> | 2012-02-26 12:30:18 -0500 |
---|---|---|
committer | Rajinder Yadav <info@devmentor.org> | 2012-02-26 12:30:18 -0500 |
commit | 3689b57e0d0a0c66611a2be7a74a3ea6f444469c (patch) | |
tree | e61ef1ad4b1a677c315cb387d1a8dfb134954f56 /railties/guides | |
parent | 1e25d6217cfac78e0ca1c1e97c539b05dc472dd6 (diff) | |
download | rails-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.textile | 2 |
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: |