I canβt figure out how to make asterisks find assets in vendor/assets . I started off the problem by adding all my assets to app/assets , but it got too cluttered.
I read the documentation and tried to add all the following lines to my application.rb file.
config.assets.paths << "#{Rails.root}/vendor/assets/*" config.assets.paths << "#{Rails.root}/vendor/assets/fonts" config.assets.paths << "#{Rails.root}/vendor/assets/stylesheets" config.assets.precompile << Proc.new { |path| if path =~ /\.(eot|svg|ttf|woff)\z/ true end
They work locally, but when I click them on the server, none of my provider assets are missing. I use capistrano for deployment, and I know that there were some upgrade issues. This may be the cause of the problem, but I followed the documentation to make it deploy (almost) everything is fine.
ruby-on-rails ruby-on-rails-4 asset-pipeline sprockets capistrano
Peter Klipfel
source share