Replies: 1 comment 3 replies
-
Can you please show how you render the ViewComponent? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! During working on my Alchemy-based website, i reached a point in which my element views are so complicated that it would be great to use ViewComponent instead of rails partials for rendering them. I believe there is no native way of telling Alchemy to render specific component for specific element type but i tried calling my the component explicitly in the element view partial. Sadly, the
element_view_for
helper misbehaves in such context and instead of renderingit renders
or even sometimes
So it closes the corresponding tag immidiatelly with empty content and renders the actual content above/below it. Do you have any experience in calling view components in element views? Am i missing anything obvious in here? Thanks!
Btw my component template looks more or less like that:
Beta Was this translation helpful? Give feedback.
All reactions