aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorSuraj N. Kurapati <sunaku@gmail.com>2011-12-11 23:18:58 -0800
committerSuraj N. Kurapati <sunaku@gmail.com>2011-12-11 23:18:58 -0800
commitb15e2be6b03811258fcaad5b827960273df88d4a (patch)
tree76aad4db2549ea53f9bc02d9c81537f5eaeb16fb /railties
parent83bc2c27605db34be18f2e4f97890d04c4cc97e4 (diff)
downloadrails-b15e2be6b03811258fcaad5b827960273df88d4a.tar.gz
rails-b15e2be6b03811258fcaad5b827960273df88d4a.tar.bz2
rails-b15e2be6b03811258fcaad5b827960273df88d4a.zip
disambiguate "and not" when explaining "&& return"
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/layouts_and_rendering.textile2
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 a0ab34960d..5cff2d0893 100644
--- a/railties/guides/source/layouts_and_rendering.textile
+++ b/railties/guides/source/layouts_and_rendering.textile
@@ -495,7 +495,7 @@ def show
end
</ruby>
-Make sure to use +and return+ and not +&amp;&amp; return+, since +&amp;&amp; return+ will not work due to the operator precedence in the Ruby Language.
+Make sure to use +and return+ instead of +&amp;&amp; return+ because +&amp;&amp; return+ will not work due to the operator precedence in the Ruby Language.
Note that the implicit render done by ActionController detects if +render+ has been called, so the following will work without errors: