Observation: content_for doesn't work in helpers #1087
Unanswered
ClayShentrup
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This may not affect many people but suppose I have a helper like this:
helpers.header('ohai')
won't work in component views even tho it works fine in normal views, and even thocontent_for(:header, 'ohai')
works fine. I have a pretty clear mental model of why this is happening but just wanted to point it out. Thanks.Beta Was this translation helpful? Give feedback.
All reactions