Frame-powered inline “quick view” that falls back to full page

9672
0

A “quick view” is basically a show page rendered inside a frame. I implement it by adding a turbo_frame_tag 'quick_view' on the index page, and making item links target that frame. If Turbo is disabled or if the response doesn’t include the frame, the browser will navigate to the normal show page (good progressive enhancement). This is a nice compromise between speed and complexity: you get a fast preview without implementing a JS modal router. For accessibility, I keep it as a normal link and avoid trapping focus unless I’m using a real modal. If you do want a modal, you can combine this with the modal frame pattern. The key is consistency: ensure the show response can render both full-page and frame-only (layout handling).