Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Jordan Goldstein's Profile

GitHub User: mrjordangoldstein

Site: mrjordangoldstein@gmail.com

Comments by Jordan Goldstein

Avatar

I use these lines to load my vendor assets into the precompile array dynamically, but your mileage may vary:

ruby
config.assets.precompile += Dir[Rails.root + "vendor/assets/javascripts/*"].map { |path| File.basename(path).slice(/.*\.js/) }
config.assets.precompile += Dir[Rails.root + "vendor/assets/stylesheets/*"].map { |path| File.basename(path).slice(/.*\.css/) }