Skip to content
Browse files

layout affects views not methods

  • Loading branch information...
1 parent 1e25d62 commit 3689b57e0d0a0c66611a2be7a74a3ea6f444469c @devmentor devmentor committed Feb 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/layouts_and_rendering.textile
View
2 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:

0 comments on commit 3689b57

Please sign in to comment.
Something went wrong with that request. Please try again.