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

rails 6 下报错The asset "exception-track/application.css" is not present in the asset pipeline. #12

Open
85636682 opened this issue Dec 3, 2019 · 1 comment

Comments

@85636682
Copy link

85636682 commented Dec 3, 2019

环境:
ruby 2.6.2
rails 6.0.1

ActionView::Template::Error (The asset "exception-track/application.css" is not present in the asset pipeline.):
[edf072b9-9975-4f2b-9165-3a88d20bc815]     2: <html>
[edf072b9-9975-4f2b-9165-3a88d20bc815]     3: <head>
[edf072b9-9975-4f2b-9165-3a88d20bc815]     4:   <title>Exception Track</title>
[edf072b9-9975-4f2b-9165-3a88d20bc815]     5:   <%= stylesheet_link_tag "exception-track/application", media: "all" %>
[edf072b9-9975-4f2b-9165-3a88d20bc815]     6:   <%= csrf_meta_tags %>
[edf072b9-9975-4f2b-9165-3a88d20bc815]     7: </head>
[edf072b9-9975-4f2b-9165-3a88d20bc815]     8: <body>
@huobazi
Copy link

huobazi commented Dec 20, 2019

@85636682

mkdir -p app/assets/config && echo '//= link exception-track/application.css' > app/assets/config/manifest.js

或者手动在 app/assets/config/manifest.js 中加入

//= link exception-track/application.css

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

No branches or pull requests

2 participants