rstacruz/sinatra-assetpack — Issue #29: JS files not served in HEAD with Padrino
Author: runemadsen
Created: 2011-12-10 17:51:06+00:00
State: open

Using Sinatra 1.3.1 and Padrino 0.10.5, no JS files are being served. There are no error in console, and css files are served perfectly.

This works with a test.scss file in /app/stylesheets:
serve '/stylesheets', from: '/app/stylesheets'
css :test, [
'/stylesheets/test.css'
]

This doesn't work with a test.js file in /app/javascripts:
serve '/javascripts', from: '/app/javascripts'
js :test, [
'/javascripts/test.js'
]

The code tag is inserted on the page, but I get a 404 when the browser tried to load the file. The file is never served to /javascripts.

I have to use HEAD because of the public folder problem in the published gem