Wrap a table row with a Turbo Frame tag in Rails

It’s impossible to wrap tr with turbo_frame tag in HTML.

Photo by Campaign Creators on Unsplash

To solve this problem, we should add a specific attribute to tr element:

And now we can perform turbo_stream.replace in our controller: