aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/layouts_and_rendering.textile
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-02-28 19:44:25 +0000
committerPratik Naik <pratiknaik@gmail.com>2009-02-28 19:44:25 +0000
commit0db6c3f51828e1a37e2c7b9245ffa8c12ac59c83 (patch)
tree6d4655e5982c7194f9c1a57f0a1d888cf93ad290 /railties/guides/source/layouts_and_rendering.textile
parent5029210914059faa65358b98a9c033a40e803c54 (diff)
downloadrails-0db6c3f51828e1a37e2c7b9245ffa8c12ac59c83.tar.gz
rails-0db6c3f51828e1a37e2c7b9245ffa8c12ac59c83.tar.bz2
rails-0db6c3f51828e1a37e2c7b9245ffa8c12ac59c83.zip
Merge docrails and update the release notes
Diffstat (limited to 'railties/guides/source/layouts_and_rendering.textile')
-rw-r--r--railties/guides/source/layouts_and_rendering.textile8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile
index d9bc605b84..5e2cedcf0c 100644
--- a/railties/guides/source/layouts_and_rendering.textile
+++ b/railties/guides/source/layouts_and_rendering.textile
@@ -683,7 +683,7 @@ Within the context of a layout, +yield+ identifies a section where content from
</head>
<body>
<%= yield %>
- <hbody>
+ </body>
</html>
</erb>
@@ -696,7 +696,7 @@ You can also create a layout with multiple yielding regions:
</head>
<body>
<%= yield %>
- <hbody>
+ </body>
</html>
</erb>
@@ -723,7 +723,7 @@ The result of rendering this page into the supplied layout would be this HTML:
</head>
<body>
<p>Hello, Rails!</p>
- <hbody>
+ </body>
</html>
</erb>
@@ -822,7 +822,7 @@ Every partial also has a local variable with the same name as the partial (minus
<%= render :partial => "customer", :object => @new_customer %>
</erb>
-Within the +customer+ partial, the +@customer+ variable will refer to +@new_customer+ from the parent view.
+Within the +customer+ partial, the +customer+ variable will refer to +@new_customer+ from the parent view.
WARNING: In previous versions of Rails, the default local variable would look for an instance variable with the same name as the partial in the parent. This behavior is deprecated in Rails 2.2 and will be removed in a future version.