开发者

CSS not showing up with ERB

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜