1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use do end for multiline block.

This commit is contained in:
Uģis Ozols 2011-12-05 23:11:20 +02:00
parent 1c65962b9d
commit d645aed91f

View file

@ -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:
#