Hey everyone
I have a weird use-case here and I’m not sure if it’s possible to do with Turbo alone.
I’d liek to be able to click a link which doesn’t have a data-turbo-frame
attribute, and server-side, in the Rails controller, do some computations and in some scenarios I want that request response to behave as a turbo-frame response.
So from the server side to tell it "respond as if the link had data-turbo-frame="some-frame"
, and on the client-side, Turbo would see that and interpret that response accordingly.
It would pick up just that frame’s content and replace it on the page.
Not sure if this can be achieved using just Rails, Turbo, and the turbo-rails gem.
Thank you!