RailsCasts Pro episodes are now free!

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/) }