Permalink
Browse files

Use do end for multiline block.

  • Loading branch information...
1 parent 1c65962 commit d645aed91f488ed00bd4b143e04c5e9b30e00c54 @ugisozols ugisozols committed Dec 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/base.rb
@@ -94,10 +94,10 @@ module ActionView #:nodoc:
#
# Any method with a block will be treated as an XML markup tag with nested markup in the block. For example, the following:
#
- # xml.div {
+ # xml.div do
# xml.h1(@person.name)
# xml.p(@person.bio)
- # }
+ # end
#
# would produce something like:
#

0 comments on commit d645aed

Please sign in to comment.