Skip to content

Commit efce114

Browse files
committed
Force turbo reload on error.
Turbo frames on turbo-rails 1.4 (current default in Rails 7) don't break out of the frame to load the error response from the DebugView middleware like they used to. It requires the turbo-visit-control meta set to reload or it fails silently.
1 parent 655278e commit efce114

File tree

1 file changed

+1
-0
lines changed
  • actionpack/lib/action_dispatch/middleware/templates/rescues

1 file changed

+1
-0
lines changed

actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<meta name="turbo-visit-control" content="reload">
67
<title>Action Controller: Exception caught</title>
78
<style>
89
body {

0 commit comments

Comments
 (0)