Skip to content

Commit

Permalink
layout affects views not methods
Browse files Browse the repository at this point in the history
  • Loading branch information
devmentor committed Feb 26, 2012
1 parent 1e25d62 commit 3689b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/layouts_and_rendering.textile
Expand Up @@ -359,7 +359,7 @@ class ProductsController < ApplicationController
end end
</ruby> </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: To assign a specific layout for the entire application, use a +layout+ declaration in your +ApplicationController+ class:


Expand Down

0 comments on commit 3689b57

Please sign in to comment.