# 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](https://unsplash.com/@campaign_creators?utm_source=medium&utm_medium=referral) on [Unsplash](https://unsplash.com?utm_source=medium&utm_medium=referral)

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

%[https://gist.github.com/6f781c0d3482ba10068c3f14cc70b363]

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

%[https://gist.github.com/2a99b9937af71a3920c24a0e3ae22a3f]

[Source](https://github.com/hotwired/turbo/pull/131)
