You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrading a rails 7.1 project that uses broadcast_replace_to to turbo-rails 2/turbo 8, resulted in the following test failure:
ActionView::Template::Error: undefined local variable or method `action' for an instance of #<Class:0x000000011ef58ad8>
app/views/scores/_last_update.html.erb:1
In my case, setting locals: {action: false} will achieve the desired result, so I have a workaround, but previously I could set a local variable to nil. I've yet to find any docs that indicate that this is an intentional change in behavior.
If it helps, doing a git bisect identified the following as the change that broke this:
Upgrading a rails 7.1 project that uses
broadcast_replace_to
to turbo-rails 2/turbo 8, resulted in the following test failure:In my case, setting
locals: {action: false}
will achieve the desired result, so I have a workaround, but previously I could set a local variable tonil
. I've yet to find any docs that indicate that this is an intentional change in behavior.If it helps, doing a git bisect identified the following as the change that broke this:
And links to the code that this change broke:
While turbo 8 provides other means by which this could be implemented, my impression was that this should continue to work.
The text was updated successfully, but these errors were encountered: