Friday, 13 September 2013

If yield is a closure inside a layout, then how does layouts are rendered within?

If yield is a closure inside a layout, then how does layouts are rendered
within?

In Rails, if yield is a closure inside a layout, then how does controller
can dictate which layout to render?
layout :render => "myLayout"

No comments:

Post a Comment