diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2008-10-24 17:52:28 -0500 |
---|---|---|
committer | Mike Gunderloy <MikeG1@larkfarm.com> | 2008-10-24 17:52:58 -0500 |
commit | 164bdd674379dc2649124e1e4a343a6097e1e746 (patch) | |
tree | 17fe0b0d002be6d204585f10a3db117a29b46688 | |
parent | 0ea10019f790ee42c6426f62622700107c2d53c6 (diff) | |
download | rails-164bdd674379dc2649124e1e4a343a6097e1e746.tar.gz rails-164bdd674379dc2649124e1e4a343a6097e1e746.tar.bz2 rails-164bdd674379dc2649124e1e4a343a6097e1e746.zip |
Tiny cleanup in layouts & rendering guide
-rw-r--r-- | railties/doc/guides/source/layouts_and_rendering.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/doc/guides/source/layouts_and_rendering.txt b/railties/doc/guides/source/layouts_and_rendering.txt index c4bb5b0591..3d970b60ce 100644 --- a/railties/doc/guides/source/layouts_and_rendering.txt +++ b/railties/doc/guides/source/layouts_and_rendering.txt @@ -768,7 +768,7 @@ You can also pass local variables into partials, making them even more powerful [source, html] ------------------------------------------------------- -new.rhtml.erb: +new.html.erb: <h1>New zone</h1> <%= error_messages_for :zone %> @@ -819,7 +819,7 @@ Partials are very useful in rendering collections. When you pass a collection to [source, html] ------------------------------------------------------- -index.rhtml.erb: +index.html.erb: <h1>Products</h1> <%= render :partial => "product", :collection => @products %> @@ -851,7 +851,7 @@ There's also a shorthand syntax available for rendering collections. For example [source, html] ------------------------------------------------------- -index.rhtml.erb: +index.html.erb: <h1>Products</h1> <%= render :partial => @products %> @@ -865,7 +865,7 @@ Rails determines the name of the partial to use by looking at the model name in [source, html] ------------------------------------------------------- -index.rhtml.erb: +index.html.erb: <h1>Contacts</h1> <%= render :partial => [customer1, employee1, customer2, employee2] %> |