开发者

CSS not showing up with ERB

开发者 https://www.devze.com 2023-03-19 07:37 出处:网络
I\'ve just hosted something on Heroku, and whenever I opened the app it worked just fine with the css being linked as such:

I've just hosted something on Heroku, and whenever I opened the app it worked just fine with the css being linked as such:

        <link rel="stylesheet" href="/css/style.css"/>

The problem came when I added my custom domain, the css no longer worked. When I view source and clic开发者_运维百科k on the href, it get a response "Not Found". Nothing has changed, my css folder is still in my public folder in my apps directory.


Have you tried different paths for the href, like

href="../css/style.css"

or

href="css/style.css"
0

精彩评论

暂无评论...
验证码 换一张
取 消