Relative Content

Tag Archive for ruby-on-railshotwire-railsturbo

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.