Skip to content

Commit 351824b

Browse files
committed
fix: restore original stimulus_layout.html.erb
- Revert to using direct pack tags instead of append_ helpers - Keep client-bundle and stimulus-bundle as originally intended - This layout doesn't need the auto-registration append pattern
1 parent 4daa2ec commit 351824b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

app/views/layouts/stimulus_layout.html.erb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>RailsReactTutorial</title>
77

8-
<%= append_stylesheet_pack_tag('stimulus-bundle') %>
9-
<%= append_javascript_pack_tag('stimulus-bundle') %>
8+
<%= stylesheet_pack_tag('client-bundle',
9+
media: 'all',
10+
'data-turbolinks-track': true) %>
11+
12+
<%= javascript_pack_tag('stimulus-bundle',
13+
'data-turbolinks-track': true,
14+
defer: true) %>
1015

1116
<%= csrf_meta_tags %>
1217
</head>
@@ -18,8 +23,6 @@
1823
</div>
1924

2025
<%= react_component "Footer" %>
21-
22-
<%= stylesheet_pack_tag(media: 'all', 'data-turbolinks-track': true) %>
23-
<%= javascript_pack_tag('data-turbolinks-track': true, defer: true) %>
2426
</body>
2527
</html>
28+

0 commit comments

Comments
 (0)