2014-07-21 111 views

回答

1

我已經想通了!

在application.rb中:

config.serve_static_assets = true 
config.assets.enabled = true 
config.assets.paths << Rails.root.join("app", "assets", "fonts") 

在production.rb:

config.serve_static_assets = true 

然後,在終端,運行:

RAILS_ENV=production bundle exec rake assets:precompile