0

我無法在生產環境(部署)中顯示基礎圖標,但它在開發過程中工作得很好。 當我開始通過nginx的和創業板Puma在生產模式下的服務器,基本上我得到的唯一錯誤是這樣的:基金會圖標在生產環境中不起作用

ActionController::RoutingError (No route matches [GET] "/stylesheets/foundation-icons.css") 

我嘗試添加這配置/ enviroments/production.rb:

config.assets.precompile += %w(vendor/foundation.scss) 

,我預編譯使用RAILS_ENV =生產

我使用的是最新版本的基礎:

gem 'foundation-rails', github: 'ahacking/foundation-rails' 

使用ruby 2.0.0.p353和Rails 4.0.2。

編輯:
基礎圖標與基礎寶石沒有真正的關係。 (我是不是誰在應用程序中實現它的傢伙)

編輯2:
添加在config/environments/production.rb女巫config.assets.compile = true去除誤差,但是圖標仍下落不明。

回答