DEV Community

Discussion on: How to migrate Rails UJS to Hotwire (Turbo)

Collapse
 
thomasvanholder profile image
thomasvanholder

@bakivernes, you can break out a turbo_frame by specifing the target attribute on a link.

link_to 'root', root_path, target:"_top"
# alternative
link_to 'root', root_path, data: { turbo_frame: '_top' }
Enter fullscreen mode Exit fullscreen mode

See also here