We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Webpacker in rails 5.2 adds javascript_packs_with_chunks_tag, which calls send_early_hints, which isn't implemented here.
javascript_packs_with_chunks_tag
send_early_hints
Workaround:
class RenderingController < RenderAnywhere::RenderingController def request r = super def r.send_early_hints(links) end r end end
The text was updated successfully, but these errors were encountered:
thanks @DanielHeath for suggesting a workaround, we encountered the same issue on Rails 5.2
ActionView::Template::Error undefined method `send_early_hints' for #<OpenStruct> NoMethodError undefined method `send_early_hints' for #<OpenStruct>
Adding the workaround as a module under lib folder then include it in the code where we use javascript tag resolves the issue
lib
Sorry, something went wrong.
No branches or pull requests
Webpacker in rails 5.2 adds
javascript_packs_with_chunks_tag
, which callssend_early_hints
, which isn't implemented here.Workaround:
The text was updated successfully, but these errors were encountered: