aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Leppert <greg@formasfunction.com>2011-08-31 19:39:41 -0300
committerGreg Leppert <greg@formasfunction.com>2011-08-31 19:39:41 -0300
commit5767c13c6809e0171614dd54a812fd1d6f5ae471 (patch)
tree6dd115956ea60ec3a3a305bc6f180477aee6595a
parent2422fbf6287f7d97859bc50ec1417b95b0b703d5 (diff)
downloadrails-5767c13c6809e0171614dd54a812fd1d6f5ae471.tar.gz
rails-5767c13c6809e0171614dd54a812fd1d6f5ae471.tar.bz2
rails-5767c13c6809e0171614dd54a812fd1d6f5ae471.zip
Update wording surrounding template file extensions to include Rails 3 and above.
-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 87ba8ab82d..310a70ca9b 100644
--- a/railties/guides/source/layouts_and_rendering.textile
+++ b/railties/guides/source/layouts_and_rendering.textile
@@ -90,7 +90,7 @@ If we want to display the properties of all the books in our view, we can do so
<%= link_to 'New book', new_book_path %>
</ruby>
-NOTE: The actual rendering is done by subclasses of +ActionView::TemplateHandlers+. This guide does not dig into that process, but it's important to know that the file extension on your view controls the choice of template handler. In Rails 2, the standard extensions are +.erb+ for ERB (HTML with embedded Ruby), and +.builder+ for Builder (XML generator).
+NOTE: The actual rendering is done by subclasses of +ActionView::TemplateHandlers+. This guide does not dig into that process, but it's important to know that the file extension on your view controls the choice of template handler. Beginning with Rails 2, the standard extensions are +.erb+ for ERB (HTML with embedded Ruby), and +.builder+ for Builder (XML generator).
h4. Using +render+