Skip to content

Cannot get turbo_frame_tag to print #217

Answered by joeldrapper
tillcarlos asked this question in Help
Discussion options

You must be logged in to vote

Hey @tillcarlos, in your ApplicationView, you can register a custom element with register_element :turbo_frame. Then just use the turbo_frame element method rather than the turbo_frame_tag helper.

We should address this more directly in the framework and documentation, as it's really confusing as it is. The problem with the Rails tag helpers is they return a String of the HTML, they don't append directly to the output buffer. That makes it quite tricky to integrate with them, since we have no way to capture the return value of multiple statements unless they're passed to a method. By way of example, you could probably get raw turbo_frame_tag to work.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@tillcarlos
Comment options

Answer selected by tillcarlos
Comment options

You must be logged in to vote
2 replies
@tillcarlos
Comment options

@joeldrapper
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants