Navigating Outside a Turbo Frame
If youâve been clicking around the schedule page as it exists after adding the edit functionality, youâve probably noticed that we moved fast and broke things. Specifically, the links on each concert name that led to the concert show page and the Favorite button both appear to be broken. Clicking the concert name does nothing but make the concert display disappear, and clicking the Favorite button updates the concert display but not the Favorites section.
Both of these problems have the same cause: the links are now inside a Turbo Frame, but are trying to change parts of the page outside that frame. A Turbo Frame, by default, only captures the part of the response that matches the ID of the Turbo Frame that ...
Get Modern Front-End Development for Rails, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.