There's a typo in the CaptureHelper docs about the deprecation of the @content_for_variable syntax. It has the old syntax wrapped in a pair of at-signs. I guess this was some old rdoc syntax? It's kind of strange to be accidental...? Well, it doesn't look wrong without them. Also, there are a couple legitimate grammar errors.
Three more things:
- I switched the documentation to use symbols as arguments to content_for -- <% content_for :nav do %> instead of <% content_for('nav') do %>. I think this is more elegant, Ruby-like, and seems to be more popular these days. It's also more 'symmetrical' with its matching call, <% yield :nav %>.
- I added an example showing how you can use content_for multiple times with the same identifier to concatenate markup.
- I nitpicked a few things here and there for grammar and style, to make it read more smoothly.
Patched against [7146].