Railsでサブディレクトリの設定をした場合、assetsの設定も忘れずに・・・ application.rb config.assets.prefix = "#{ENV['RAILS_RELATIVE_URL_ROOT'] || ''}/assets"