Quantcast
Viewing all articles
Browse latest Browse all 3

Rails 3.1 asset precompilation – include all javascript files

config.assets.precompile accepts regular expressions and wildcard matching – so to ensure all js files get compiled, without specifying each by name, something like this should do the trick:

config.assets.precompile << '*.js'

Viewing all articles
Browse latest Browse all 3

Trending Articles