This project is archived and is in readonly mode.
Add method to get to content captured with content_for from helper methods
-
Jeremy Kemper
You can use
in place ofcontent_for(:foo)yield. I see now this isn't in the rdoc... -
Brian Durand
Great, 'cuz I was thinking that would be the perfect name for the method but it was already taken.
-
Jeremy Kemper
I mean it already works ;-)
-
Brian Durand
Yep, understood. Just to confirm, will you add a comment to the rdoc?
-
Jeremy Kemper
- Milestone set to 2.3.6
- Tag changed from 3.0, actionview, helpers to 3.0, actionview, bugmash, helpers
Keep meaning to but my to-dos are a mile long. Tagging for Bugmash to update docs.
-
Jeroen van Dijk
- Tag changed from 3.0, actionview, bugmash, helpers to 3.0, actionview, bugmash, docs, helpers, patch
I have created a first version of documentation for this. I have access to the docrails project, but I would like to know if people think this is clear enough.
I'm also thinking that the whole yield syntax has no extra value anymore and should maybe be discouraged in documentation by not mentioning it.
If others can confirm that this is clear enough, I'll push it to docrails.
-
Jeff Kreeftmeijer
+1
Clear. I don't agree on removing the yield syntax though, the way you're doing it now is clearly discouraging the use of yield, which feels better than not documenting it at all. :)
-
Jeroen van Dijk
- Assigned user set to José Valim
Thanks for the confirmation Jeff. Documentation has been pushed to docrails: http://github.com/lifo/docrails/commit/f45714bb4a45097834dda2da03f8...
Ticket can be closed.
-
José Valim
- State changed from new to resolved
