rails/rails — Issue #3398: Stylesheet assets with period in the name cannot be loaded when config.assets.compile = true
Author: sgulics
Created: 2011-10-21 21:14:51+00:00
State: open

I am seeing this issue in Rails 3.1.1. The file with period is not part of the precompile process.

To reproduce:

1. Add a file called ui.jqgrid.css to app/assets/stylesheets

2. Add the following to your view
```<%=stylesheet_link_tag 'ui.jqgrid.css' %>
```
3. In production.rb set config.assets.compile = true

4. rails s -e production

5. The request to http://localhost:3000/assets/ui.jqgrid-8f27f84a702932cb91b30d27d58ebef1.css returns a 404

Javascript assets are fine if they are in app/assets/javascripts, but I did notice that you will get a 404 if you try to load a js file with a period in the name, for example "jquery.validate.min.js", that is located in the vendor/assets/javascripts directory

The stylesheet will be found if you set config.assets.digest = false