Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/troygoode/asset-rack-issue-26
https://github.com/troygoode/asset-rack-issue-26
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/troygoode/asset-rack-issue-26
- Owner: troygoode
- Created: 2013-02-14T06:10:50.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-14T06:19:17.000Z (almost 12 years ago)
- Last Synced: 2024-05-08T16:55:13.715Z (6 months ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Repro example for [issue #26](https://github.com/techpines/asset-rack/issues/26) of asset-rack. This is a problem that only occurs with [mounting sub-apps](http://vimeo.com/56166857).
Clone, run `npm install`, run `npm start`, then open localhost:3000. You'll see that when you
click through to the example page the CSS doesn't load. The tag will be
generating a URL like:http://localhost:3000/css/app-a8c4e5f26745712564df2a8a9f6e1bf5.css
This won't work, but this will:
http://localhost:3000/example/css/app-a8c4e5f26745712564df2a8a9f6e1bf5.css
Unfortunately changing the call to `assets#tag` from
`assets.tag('/css/app.css')` to `assets.tag('/example/css/app.css')`
causes asset-rack to break saying "No asset found for url: /example/css/app.css".