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:
parent
1c65962b9d
commit
d645aed91f
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue