aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_coder@freenet.de>2009-02-10 19:46:54 +0100
committerAndreas Scherer <andreas_coder@freenet.de>2009-02-10 19:46:54 +0100
commit542e61849e3bdfa8497773c68f7b65b9927114de (patch)
tree327227b1ec0e39bccabea022a500e3ef8c8f9ecf /railties/guides
parentb42fb934d194d8bc1770e4c5efb80c4674ea5cbe (diff)
downloadrails-542e61849e3bdfa8497773c68f7b65b9927114de.tar.gz
rails-542e61849e3bdfa8497773c68f7b65b9927114de.tar.bz2
rails-542e61849e3bdfa8497773c68f7b65b9927114de.zip
Fix more typos.
A second occurrence of unmatched 'code' markers. Plain HTML tags are not rendered at all, so use named HTML elements instead.
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/layouts_and_rendering.textile10
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile
index 9e71375d28..cf3410b502 100644
--- a/railties/guides/source/layouts_and_rendering.textile
+++ b/railties/guides/source/layouts_and_rendering.textile
@@ -510,7 +510,7 @@ Asset tags provide methods for generating HTML that links views to assets like i
* stylesheet_link_tag
* image_tag
-You can use these tags in layouts or other views, although the tags other than +image_tag+ are most commonly used in the <tt><head></tt> section of a layout.
+You can use these tags in layouts or other views, although the tags other than +image_tag+ are most commonly used in the +&lt;head&gt;+ section of a layout.
WARNING: The asset tags do _not_ verify the existence of the assets at the specified locations; they simply assume that you know what you're doing and generate the link.
@@ -645,11 +645,11 @@ By default, the combined file will be delivered as +stylesheets/all.css+. You ca
:cache => 'cache/main/display' %>
</erb>
-You can even use dynamic paths such as "cache/#{current_site}/main/display"+.
+You can even use dynamic paths such as +cache/#{current_site}/main/display+.
h5. Linking to Images with image_tag
-The +image_tag+ helper builds an HTML <tt><image></tt> tag to the specified file. By default, files are loaded from +public/images+. If you don't specify an extension, .png is assumed by default:
+The +image_tag+ helper builds an HTML +&lt;image&gt;+ tag to the specified file. By default, files are loaded from +public/images+. If you don't specify an extension, +.png+ is assumed by default:
<erb>
<%= image_tag "header" %>
@@ -727,7 +727,7 @@ The result of rendering this page into the supplied layout would be this HTML:
</html>
</erb>
-The +content_for+ method is very helpful when your layout contains distinct regions such as sidebars and footers that should get their own blocks of content inserted. It's also useful for inserting tags that load page-specific javascript or css files into the header of an otherwise-generic layout.
+The +content_for+ method is very helpful when your layout contains distinct regions such as sidebars and footers that should get their own blocks of content inserted. It's also useful for inserting tags that load page-specific javascript or css files into the header of an otherwise generic layout.
h4. Using Partials
@@ -952,7 +952,7 @@ NOTE: In versions of Rails before Rails 2.3, you should use +render 'layouts/app
That's it. The News views will use the new layout, hiding the top menu and adding a new right menu inside the "content" div.
-There are several ways of getting similar results with differents sub-templating schemes using this technique. Note that there is no limit in nesting levels. One can use the +ActionView::render+ method via +render 'layouts/news'+ to base a new layout on the News layout.
+There are several ways of getting similar results with different sub-templating schemes using this technique. Note that there is no limit in nesting levels. One can use the +ActionView::render+ method via +render 'layouts/news'+ to base a new layout on the News layout.
h3. Changelog