1

我添加了surveyor gem,但它破坏了我的css(几乎完全用引导程序构建)。如何处理?

无测量员: 在此处输入图像描述

与测量员: 在此处输入图像描述

下面是我的gemfile:

source 'https://rubygems.org'
ruby '2.0.0'
#ruby-gemset=railstutorial_rails_4_0

gem 'rails', '4.0.5'
gem 'bootstrap-sass', '2.3.2.0'
gem 'sprockets', '2.11.0'
gem 'bcrypt-ruby', '3.1.2'
gem 'faker', '1.1.2'
gem 'will_paginate', '3.0.4'
gem 'bootstrap-will_paginate', '0.0.9'

gem "paperclip", "3.5.3"
gem "aws-sdk"

gem 'whenever', :require => false

gem 'factory_girl_rails', '4.2.1'
gem 'd3-rails'

gem 'figaro'
gem 'rename'

group :development do
  gem "letter_opener"
end

group :test do
  gem 'selenium-webdriver', '2.35.1'
  gem 'capybara', '2.1.0'
  gem 'cucumber-rails', '1.4.0', :require => false
  gem 'database_cleaner', github: 'bmabey/database_cleaner'
end

group :development, :test do
  gem 'sqlite3', '1.3.8'
  gem 'rspec-rails', '2.13.1'
end

gem 'sass-rails', '4.0.1'
gem 'uglifier', '2.1.1'
gem 'coffee-rails', '4.0.1'
gem 'jquery-rails', '3.0.4'
gem 'jquery-datetimepicker-rails'
gem 'jquery-turbolinks'
gem 'turbolinks', '1.1.1'
gem 'jbuilder', '1.0.2'

group :doc do
  gem 'sdoc', '0.3.20', require: false
end

group :production do
  gem 'pg', '0.15.1'
  gem 'rails_12factor', '0.0.2'
  gem 'newrelic_rpm'
end
4

1 回答 1

1

答案可以在这里找到,在这里输入链接描述。基本上surveyor_all.cssinapp/assets/stylesheets以某种方式覆盖引导程序。

只需手动删除require_tree .并包含您的内容。custom.css.scss即使没有surveyor_all.css被包括在内,调查似乎也很好。

于 2014-09-20T20:14:37.313 回答