I set config.assets.compile =true on config/environments/production.rb