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