made config.assets.initialize_on_precompile=true in application.rb.