Skip to content

Commit

Permalink
Update wording surrounding template file extensions to include Rails …
Browse files Browse the repository at this point in the history
…3 and above.
  • Loading branch information
leppert committed Aug 31, 2011
1 parent 2422fbf commit 5767c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/layouts_and_rendering.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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+

Expand Down

0 comments on commit 5767c13

Please sign in to comment.