【发布时间】:2015-07-28 16:20:47
【问题描述】:
我目前在这里部署了一个应用程序:https://morning-shelf-1378.herokuapp.com/job-fairs
正如您所看到的,它已将 ActiveAdmin 资产/样式表中的样式表组合到应用程序中,导致字体带有下划线等,而我只希望它显示在 https://morning-shelf-1378.herokuapp.com/admin/ 上。
有没有办法指定来自 ActiveAdmin 的样式表默认不显示?当我在本地部署时,一切似乎都很好。
Rails.application.configure do
config.cache_classes = true
config.eager_load = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
config.assets.js_compressor = :uglifier
config.assets.compile = false
config.assets.digest = true
config.log_level = :debug
config.i18n.fallbacks = true
config.active_support.deprecation = :notify
config.log_formatter = ::Logger::Formatter.new
config.active_record.dump_schema_after_migration = false
end
【问题讨论】:
标签: css ruby-on-rails heroku