2017-03-29 55 views
2

我使用Rails的管理員爲Rails應用程序儀表板。但在儀表板上,圖標都是相同的 - 白色方塊。Rails的管理圖標破

截圖供斷的圖標:

Broken Icons

這裏是Gemfile中

source 'http://rubygems.org' 

gem 'rails', '4.1.1' 
gem 'slim-rails', '~> 2.1.0' 
gem 'devise', '~> 3.2.4' 
gem 'devise-i18n' 
gem 'configatron', '2.13.0' 
gem 'navigation_link_to', '0.0.2' 
gem 'cyrax', '0.7.4' 
gem 'dotenv-rails' 

gem 'simple_form', '3.0.2' 

# emails styles 
gem 'roadie', '2.4.3' 

# assets 
gem 'sass-rails', '~> 4.0.3' 
gem 'uglifier', '~> 2.5.0' 
gem 'coffee-rails', '~> 4.0.1' 
gem 'therubyracer', platforms: :ruby, require: 'v8' 
gem 'droidcss' 
gem 'jquery-rails' 
gem 'bootstrap-sass' 

# unicorn 
gem 'unicorn' 
gem 'jbuilder' 

# mongo 
gem 'mongoid', '~> 4.0.0' 
gem 'mongoid-grid_fs' 
gem 'fog', '~> 1.27', require: 'fog/aws/storage' 
gem 'carrierwave-mongoid', require: 'carrierwave/mongoid' 
gem 'mongoid-geospatial' 
# gem 'rmagick', require: false 
gem 'mini_magick' 
gem 'carrierwave-video' 
gem 'public_activity' 
gem 'mongoid_slug' 
gem 'mongoid_search' 
gem 'mongoid_paranoia', github: 'simi/mongoid_paranoia' 

# aerospike 
gem 'aerospike' 

# documentation 
gem 'apipie-rails', github: 'Apipie/apipie-rails' 
gem 'maruku' 

# other gems 
gem 'inherited_resources' 
gem 'rails_admin', github: 'sferik/rails_admin' 
gem 'enumerize' 
gem 'sidekiq' 
gem 'pundit' 

# ios gem 
gem 'houston' 

gem 'whenever' 
# gem 'quartz', github: 'jeizsm/quartz' 
gem 'twilio-ruby' 
# mixpanel 
gem 'mixpanel-ruby' 

group :development do 
    gem 'capistrano', '2.15.5', require: false 
    gem 'capistrano-sidekiq', github: 'seuros/capistrano-sidekiq' 
    gem 'letter_opener' 
    gem 'quiet_assets', '1.0.2' 
    gem 'thin', '1.6.2' 
    gem 'guard-rubocop' 
end 

group :test do 
    gem 'spring-commands-rspec' 
    gem 'database_cleaner', '1.2.0' 
    gem 'factory_girl_rails', '4.4.1' 
    gem 'capybara', '2.3.0' 
    gem 'email_spec', '1.5.0' 
    gem 'turnip', '1.2.1' 
end 

group :test, :development do 
    gem 'mocha', '1.0.0', require: 'mocha/api' 
    gem 'spring' 
    gem 'rspec-rails', '~> 3.0.0' 
    gem 'guard-rspec', require: false 
    gem 'shoulda', '3.5.0' 
    gem 'byebug' 
    gem 'pry-byebug' 
    gem 'pry-rails' 
end 

有任何差錯,同時使用軌道管理員或其他寶石?

任何建議將是有益的!

回答

1

我認爲你需要使用font-awesome寶石。我之前有同樣的問題。

Rails的管理使用舊版本fontawesome的。在這裏下載zip文件:http://fortawesome.github.io/Font-Awesome/3.2.1/assets/font-awesome.zip

然後把以下文件到/public/assets目錄中軌項目,從/font目錄中的zip文件:

fontawesome-webfont.eot 
fontawesome-webfont.svg 
fontawesome-webfont.ttf 
fontawesome-webfont.woff 
FontAwesome.otf