Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

content_for :render_async does nothing. #149

Closed
Overload119 opened this issue Oct 19, 2021 · 1 comment
Closed

content_for :render_async does nothing. #149

Overload119 opened this issue Oct 19, 2021 · 1 comment

Comments

@Overload119
Copy link

Overload119 commented Oct 19, 2021

Render async is not working as a result. Any tips for debugging?

= content_for :render_async
= render_async my_path do
    ...
<div id="render_async_44dbb2c2501634604700">...</div>

I'm using Turbolinks and Webpacker (if that's relevant).

Note that I was using layout: false and no layout. I tried adding to application layout but the same result.

Another thing I tried is adding a breakpoint to my view to check the value of content_for :render_async and the result is nil.

@Overload119
Copy link
Author

Okay, I fixed this.

= content_for :render_async has to be placed AFTER render_async

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant