content_for(name, content = nil, options = {}, &block)
Instance Public methods
Calling #content_for
stores a block of markup in an identifier for later use. In order to access
this stored content in other templates, helper modules or the layout, you
would pass the identifier as an argument to content_for.
Note: yield can still be used to retrieve the stored content,
but calling yield doesn't work in helper modules, while
content_for does.
<% content_for :not_authorized do %&