It sounds like you could benefit from Turbo Frames.
Turbo Frames decompose pages into independent contexts, which scope navigation and can be lazily loaded.
For example, set up your main content as a Turbo Frame and have link clicks only reload the content inside that area. Leaving your top bar and left sidebar untouched.
So what I understand is that I only need to return response which contains <turbo-frame id ...> element. If the response have that frame, then turbo will replace that element instead of <body>?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It sounds like you could benefit from Turbo Frames.
For example, set up your main content as a Turbo Frame and have link clicks only reload the content inside that area. Leaving your top bar and left sidebar untouched.
So what I understand is that I only need to return response which contains
<turbo-frame id ...>
element. If the response have that frame, then turbo will replace that element instead of<body>
?