Hotwire Gap
For the following examples, the panel will represent a HTML document. It will help us to simulate a Turbo Drive click. With Turbo drive, the whole body will be replaced with a click.
<html>
<head></head>
<body>

Hi there 👋, I'm simulating your friendly neighbourhood body element. With Turbo drive my contents are replaced with link clicks.

Let's go for a drive!
</body>
</html>
A form submit with a redirect will also cause Drive to replace the body contents.

Important

The redirect within your controller action must include status: :see_other

A render within your controller action must include status: :unprocessible_entity for a failed post request.

<html>
<head></head>
<body>

Hi there 👋, I'm simulating your friendly neighbourhood body element. With Turbo drive my contents are replaced when a successful form submit redirects.

</body>
</html>