aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/layouts_and_rendering.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-05-24 00:26:08 +0200
committerXavier Noria <fxn@hashref.com>2009-05-24 00:26:08 +0200
commita65457158e68aeb4936f6fa59031fd430ebb89f8 (patch)
tree933976c236d4247b7e0cbdee5d511b578c820e23 /railties/guides/source/layouts_and_rendering.textile
parent39ad75bda2e140008024543692e0c7019a5a4632 (diff)
downloadrails-a65457158e68aeb4936f6fa59031fd430ebb89f8.tar.gz
rails-a65457158e68aeb4936f6fa59031fd430ebb89f8.tar.bz2
rails-a65457158e68aeb4936f6fa59031fd430ebb89f8.zip
layouts guide: makes some app paths relative
Diffstat (limited to 'railties/guides/source/layouts_and_rendering.textile')
-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 d7573e6314..feeddfa346 100644
--- a/railties/guides/source/layouts_and_rendering.textile
+++ b/railties/guides/source/layouts_and_rendering.textile
@@ -266,7 +266,7 @@ render :xml => photo, :location => photo_url(photo)
h5. Finding Layouts
-To find the current layout, Rails first looks for a file in +app/views/layouts+ with the same base name as the controller. For example, rendering actions from the +PhotosController+ class will use +/app/views/layouts/photos.html.erb+ (or +app/views/layouts/photos.builder+). If there is no such controller-specific layout, Rails will use +/app/views/layouts/application.html.erb+ ot +/app/views/layouts/application.builder+. If there is no +.erb+ layout, Rails will use a +.builder+ layout if one exists. Rails also provides several ways to more precisely assign specific layouts to individual controllers and actions.
+To find the current layout, Rails first looks for a file in +app/views/layouts+ with the same base name as the controller. For example, rendering actions from the +PhotosController+ class will use +app/views/layouts/photos.html.erb+ (or +app/views/layouts/photos.builder+). If there is no such controller-specific layout, Rails will use +app/views/layouts/application.html.erb+ ot +app/views/layouts/application.builder+. If there is no +.erb+ layout, Rails will use a +.builder+ layout if one exists. Rails also provides several ways to more precisely assign specific layouts to individual controllers and actions.
h6. Specifying Layouts on a per-Controller Basis