aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/action_view_overview.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-06-10 17:06:21 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-06-11 19:20:54 +0530
commit94c52e8bd7ce39ed36c75b6af5ac636f58a63263 (patch)
treee391530e853b9abbe6656b4f9aefdeddc2f95c10 /railties/guides/source/action_view_overview.textile
parent4699c933019680e11616756b49ab2dad1e53dcda (diff)
downloadrails-94c52e8bd7ce39ed36c75b6af5ac636f58a63263.tar.gz
rails-94c52e8bd7ce39ed36c75b6af5ac636f58a63263.tar.bz2
rails-94c52e8bd7ce39ed36c75b6af5ac636f58a63263.zip
minor fixes in action view guide
Diffstat (limited to 'railties/guides/source/action_view_overview.textile')
-rw-r--r--railties/guides/source/action_view_overview.textile6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/action_view_overview.textile b/railties/guides/source/action_view_overview.textile
index a3454579ad..7703d6c720 100644
--- a/railties/guides/source/action_view_overview.textile
+++ b/railties/guides/source/action_view_overview.textile
@@ -165,7 +165,7 @@ will produce
<em>emphasized</em>
<em><b>emph &amp; bold</b></em>
<a href="http://rubyonrails.org">A link</a>
-<target option="fast" name="compile" \>
+<target option="fast" name="compile" />
</html>
Any method with a block will be treated as an XML markup tag with nested markup in the block. For example, the following:
@@ -211,7 +211,7 @@ xml.rss("version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/") do
end
</ruby>
-h5. Template caching
+h5. Template Caching
By default, Rails will compile each template to a method in order to render it. When you alter a template, Rails will check the file's modification time and recompile it in development mode.
@@ -235,7 +235,7 @@ This will render a file named +_menu.html.erb+ at that point within the view is
That code will pull in the partial from +app/views/shared/_menu.html.erb+.
-h5. Using Partials to Simplify Views
+h5. Using Partials to simplify Views
One way to use partials is to treat them as the equivalent of subroutines: as a way to move details out of a view so that you can grasp what's going on more easily. For example, you might have a view that looked like this: