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 Make Favorite button both appear to be broken. Clicking the concert name does nothing but make the concert display disappear, and clicking the Make 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. Turbo Frames, by default, only captures the part of the response that matches the ID of the Turbo Frame ...
Get Modern Front-End Development for Rails 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.