diff options
author | Jaime Iniesta <jaimeiniesta@gmail.com> | 2010-04-04 11:06:16 +0200 |
---|---|---|
committer | Jaime Iniesta <jaimeiniesta@gmail.com> | 2010-04-04 11:06:16 +0200 |
commit | 8fa3183436cedd7248b47b4aa1fda86e77396c9a (patch) | |
tree | 0733e3e7b943d28729aeb71690a95bceb76ed2ca /railties/guides/source | |
parent | 8f9becb42632d68ae84639b19022ff7d64666a30 (diff) | |
download | rails-8fa3183436cedd7248b47b4aa1fda86e77396c9a.tar.gz rails-8fa3183436cedd7248b47b4aa1fda86e77396c9a.tar.bz2 rails-8fa3183436cedd7248b47b4aa1fda86e77396c9a.zip |
Fixed layouts_and_rendering guide so that it validates XHTML 1.0 Strict
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/layouts_and_rendering.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile index 2cb98e9ee6..1ddba807e0 100644 --- a/railties/guides/source/layouts_and_rendering.textile +++ b/railties/guides/source/layouts_and_rendering.textile @@ -510,7 +510,7 @@ def show end </ruby> -Make sure you use +and return+ and not +&& return+ because while the former will work, the latter will not due to operator precedence in the Ruby Language. +Make sure you use +and return+ and not +&& return+ because while the former will work, the latter will not due to operator precedence in the Ruby Language. Note that the implicit render done by ActionController detects if +render+ has been called, and thus avoids this error. Therefore, the following will work without errors: @@ -747,7 +747,7 @@ You can even use dynamic paths such as +cache/#{current_site}/main/display+. h5. Linking to CSS Files with +stylesheet_link_tag+ -The +stylesheet_link_tag+ helper returns an HTML +<link>+ tag for each source provided. Rails looks in +public/stylesheets+ for these files by default, but you can specify a full path relative to the document root, or a URL, if you prefer. For example, to include +public/stylesheets/main.cs+: +The +stylesheet_link_tag+ helper returns an HTML +<link>+ tag for each source provided. Rails looks in +public/stylesheets+ for these files by default, but you can specify a full path relative to the document root, or a URL, if you prefer. For example, to include +public/stylesheets/main.cs+: <erb> <%= stylesheet_link_tag "main" %> |