There is currently a known issue with Rails 4 when precompiling assets in an environment.
Try to install:
config.assets.precompile=true
in config/application.rb .
If this still does not work, try adding the following to config/application.rb :
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
I can not reproduce the strange error that occurs when combining these files in config.assets.precompile . Can you try the answer to this question (replace the line above):
config.assets.precompile << Proc.new { |path| if path =~ /\.(css|js|png|jpg|jpeg|gif)\z/ full_path = Rails.application.assets.resolve(path).to_path app_assets_path = Rails.root.join('app', 'assets').to_path vendor_assets_path = Rails.root.join('vendor', 'assets').to_path if ((full_path.starts_with? app_assets_path) || (full_path.starts_with? vendor_assets_path)) && (!path.starts_with? '_') puts "\t" + full_path.slice(Rails.root.to_path.size..-1) true else false end else false end }
source share