Use correct script tags
stevepolitodesign opened this issue · comments
Steps to reproduce
- Checkout the support_rails_7 branch.
- Once you are in the
suspenders
directory, run./bin/suspenders some_app_name
to generate a Rails app from the current state of suspenders. - Change directories into
some_app_name
. - Run
rails g scaffold some_model some_attribute
followed byrails db:migrate
. - Run
rails s
and visit a route for the resource created in step 4.
This is what ships with a new Rails 7 app generated with -c=postcss
<head>
<title>Rails7Css</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>
</head>
Closed by #1113