Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct script tags #1111

Closed
Tracked by #1106 ...
stevepolitodesign opened this issue Dec 14, 2022 · 2 comments
Closed
Tracked by #1106 ...

Use correct script tags #1111

stevepolitodesign opened this issue Dec 14, 2022 · 2 comments

Comments

@stevepolitodesign
Copy link
Contributor

stevepolitodesign commented Dec 14, 2022

Steps to reproduce

  1. Checkout the support_rails_7 branch.
  2. Once you are in the suspenders directory, run ./bin/suspenders some_app_name to generate a Rails app from the current state of suspenders.
  3. Change directories into some_app_name.
  4. Run rails g scaffold some_model some_attribute followed by rails db:migrate.
  5. Run rails s and visit a route for the resource created in step 4.

CleanShot 2022-12-14 at 10 00 19@2x

@stevepolitodesign
Copy link
Contributor Author

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>

@stevepolitodesign
Copy link
Contributor Author

Closed by #1113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant