RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: mrjordangoldstein
Site: mrjordangoldstein@gmail.com
I use these lines to load my vendor assets into the precompile array dynamically, but your mileage may vary:
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/) }
I use these lines to load my vendor assets into the precompile array dynamically, but your mileage may vary: