Commit 3182910
Complete Turbo migration: Update Pro dummy app and docs (#1908)
* Fix Turbo navigation by updating to Turbo-compatible script tag
Changed from deprecated 'data-turbolinks-track' to modern 'data-turbo-track'
attribute with 'reload' value. Also explicitly added defer: true for clarity.
This fixes Turbo navigation issues in the dummy app.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Update Pro dummy app and docs to use modern Turbo syntax
Address inconsistencies identified in the Turbo migration by updating:
1. Pro version dummy app layout (react_on_rails_pro/spec/dummy/app/views/layouts/application.html.erb):
- Change 'data-turbolinks-track': true to 'data-turbo-track': 'reload'
- Ensures consistency with main dummy app which was already updated
2. Documentation (docs/building-features/turbolinks.md):
- Clarify Turbolinks 5.x vs 2.x syntax differences
- Add note pointing users to modern Turbo syntax
- Improve readability of legacy Turbolinks section
These changes complete the Turbo migration across all dummy apps and provide
clearer guidance for users on the recommended modern approach.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>1 parent fe363a9 commit 3182910
File tree
3 files changed
+13
-4
lines changed- docs/building-features
- react_on_rails_pro/spec/dummy/app/views/layouts
- spec/dummy/app/views/layouts
3 files changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
136 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
137 | 146 | | |
138 | 147 | | |
139 | 148 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments