It's the same thing. A block is passed to the layout method that will render the document body when called.
yield
is actually a keyword in Ruby. It is possible to define a method named "yield" (Enumerator does this, for example), but whenever you see yield
without a receiver, it will always be the same keyword that passes control to a block.