Skip to content

Commit

Permalink
reorder layout selection examples to occur in the order that the code…
Browse files Browse the repository at this point in the history
… does, and provide more detail on why each selection is made
  • Loading branch information
mjankowski committed Jun 21, 2011
1 parent 100b675 commit 20a9bdd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions actionpack/lib/abstract_controller/layouts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ module AbstractController
# class EmployeeController < BankController
# layout nil
#
# The InformationController uses "bank_standard" inherited from the BankController, the VaultController overwrites
# and picks the layout dynamically, and the EmployeeController doesn't want to use a layout at all.
#
# The TellerController uses +teller.html.erb+, and TillController inherits that layout and
# uses it as well.
# In these examples:
# * The InformationController will use the "bank_standard" layout, which is inherited from BankController
# * The TellerController will follow convention and use +app/views/layouts/teller.html.erb+
# * The TillController will inherit the layout from TellerController and use +teller.html.erb+ as well
# * The VaultController will pick a layout dynamically by calling the <tt>access_level_layout</tt> method
# * The EmployeeController will not use a layout
#
# == Types of layouts
#
Expand Down

0 comments on commit 20a9bdd

Please sign in to comment.