set config.assets.initialize_on_precompile = false in application.rb