Skip to content
Browse files

disambiguate "and not" when explaining "&& return"

  • Loading branch information...
1 parent 83bc2c2 commit b15e2be6b03811258fcaad5b827960273df88d4a Suraj N. Kurapati committed Dec 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/layouts_and_rendering.textile
View
2 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:

0 comments on commit b15e2be

Please sign in to comment.
Something went wrong with that request. Please try again.