Reputation: 1861
Alright so lets say I have these files in vendor/assets/javascript/
:
modernizer.js
lightbox.js
highchart.js
And these files in app/assets/javascript/
:
pages.js.coffee
accounts.js.coffee
application.js.coffee
charts.js.coffee
I would like to have lightbox.js
, highchart.js
and modernizer.js
all compiled into seperate files. Here's an example in public/assets/
:
application-HASH.js
modernizer-HASH.js
highchart-HASH.js
lightbox-HASH.js
I'm using Rails 3.1.3, Ruby 1.9.3 (Not that this matters).
Upvotes: 2
Views: 224
Reputation: 84152
Add them to the list of assets to precompile by sticking this in application.rb
config.assets.precompile += ['lightbox.js', 'highchart.js', 'modernizer.js']
Upvotes: 1