Why is turbo frame content getting replaced with entire target page, rather than just the turbo frame with matching id inside that page?
I have these three partials:
turbo-frame src is updated but html does not render
I have a <turbo-frame id="modal">
tag in my rails layout outside of the <%= yield %>
and when I try to render content in the turbo-frame from within the yield it does not render the HTML inside the turbo-frame. The src
attribute updates to <turbo-frame id="modal" src="https://my-url">
and there are no errors on the page or server.
Restrict routes access
Let’s say I have a route /authors/:id, and its partial is lazily loading the author books in a table with a lazy loading turbo_frame_tag, via the route author/:id/books, this table also have show, delete, update, routes for each table row to allow updating, deleting a book.
rails: how to refresh a list with turbo after form validatin
I’m kinda following the rails tutorial to learn it and I wanted to learn with turbo.