Skip to content

Commit 1533e9f

Browse files
author
David Heinemeier Hansson
authored
Merge pull request #2 from davekaro/fix-turbo-reference
fix turbo data attribute
2 parents 40e6f93 + f6966d8 commit 1533e9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/install/install.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
if (app_layout_path = Rails.root.join("app/views/layouts/application.html.erb")).exist?
1111
say "Add JavaScript include tag in application layout"
12-
insert_into_file app_layout_path.to_s,
13-
%(\n <%= javascript_include_tag "application", "data-track-turbo": "true", defer: true %>), before: /\s*<\/head>/
12+
insert_into_file app_layout_path.to_s,
13+
%(\n <%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>), before: /\s*<\/head>/
1414
else
1515
say "Default application.html.erb is missing!", :red
16-
say %( Add <%= javascript_include_tag "application", "data-track-turbo": "true", defer: true %> within the <head> tag in your custom layout.)
16+
say %( Add <%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %> within the <head> tag in your custom layout.)
1717
end
1818

1919
unless (app_js_entrypoint_path = Rails.root.join("app/javascript/application.js")).exist?

0 commit comments

Comments
 (0)