diff options
author | Greg Leppert <greg@formasfunction.com> | 2011-08-31 19:39:41 -0300 |
---|---|---|
committer | Greg Leppert <greg@formasfunction.com> | 2011-08-31 19:39:41 -0300 |
commit | 5767c13c6809e0171614dd54a812fd1d6f5ae471 (patch) | |
tree | 6dd115956ea60ec3a3a305bc6f180477aee6595a /railties/guides/source | |
parent | 2422fbf6287f7d97859bc50ec1417b95b0b703d5 (diff) | |
download | rails-5767c13c6809e0171614dd54a812fd1d6f5ae471.tar.gz rails-5767c13c6809e0171614dd54a812fd1d6f5ae471.tar.bz2 rails-5767c13c6809e0171614dd54a812fd1d6f5ae471.zip |
Update wording surrounding template file extensions to include Rails 3 and above.
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/layouts_and_rendering.textile | 2 |
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+ |