Closed joeldrapper closed 2 months ago
Worth mentioning is that in this particular case I could fix it by changing to render "tracking"
, and that this might in some way be related to https://github.com/phlex-ruby/phlex-rails/issues/137?
This should have been covered by the if @_context
check, which is essentially saying, “if we’re already rendering something, do the usual behaviour”. It’s because Rails interface for layouts is that they should respond to render
, while everything else needs to respond to render_in
. So frustrating. 😅
This is fixed in main
and v1
. It will be in the next release.
🎉
Hi!
I like this change. I needed something like this in the past.
However, it appears to have broken this kind of code:
It raises:
Originally posted by @Burgestrand in https://github.com/phlex-ruby/phlex-rails/issues/192#issuecomment-2060714585