我尝试从rails 3.2迁移到rails 4.0.1,当我按照本指南进行操作时http://railscasts.com/episodes/415-upgrading-to-rails-4
我对bootstrapp css有错误
File to import not found or unreadable: bootstrap-responsive.
Load paths:
/home/arseniy/Work/requests/app/assets/images
/home/arseniy/Work/requests/app/assets/javascripts
/home/arseniy/Work/requests/app/assets/stylesheets
/home/arseniy/Work/requests/vendor/assets/images
/home/arseniy/Work/requests/vendor/assets/javascripts
/home/arseniy/Work/requests/vendor/assets/stylesheets
/home/arseniy/.rvm/gems/ruby-2.0.0-p247@requests/gems/bootstrap-sass-3.0.2.1/vendor/assets/fonts
/home/arseniy/.rvm/gems/ruby-2.0.0-p247@requests/gems/bootstrap-sass-3.0.2.1/vendor/assets/javascripts
/home/arseniy/.rvm/gems/ruby-2.0.0-p247@requests/gems/bootstrap-sass-3.0.2.1/vendor/assets/stylesheets
/home/arseniy/.rvm/gems/ruby-2.0.0-p247@requests/gems/jquery-rails-3.0.4/vendor/assets/javascripts
/home/arseniy/.rvm/gems/ruby-2.0.0-p247@requests/gems/coffee-rails-4.0.1/lib/assets/javascripts
/home/arseniy/.rvm/gems/ruby-2.0.0-p247@requests/gems/bootstrap-sass-3.0.2.1/vendor/assets/stylesheets
(in /home/arseniy/Work/requests/app/assets/stylesheets/bootstrap_and_overrides.css.scss:3)
这是我的bootstrap_and_overrides.css.scss
@import "bootstrap";
body { padding-top: 60px; }
@import "bootstrap-responsive";
.footer {
text-align: right;
color: #aaa;
}
答案 0 :(得分:2)
如this migration Guide中所述,Bootstrap现在应用“移动优先”练习。 因此,您不再需要响应式css,并且所有必需的代码都包含在“bootstrap.css”文件中。 只需删除
即可@import "bootstrap-responsive";
行,它应该没问题!