Rails问题:“找不到文件'bootstrap / css / bootstrap''

时间:2013-11-18 10:10:41

标签: ruby-on-rails ruby twitter-bootstrap haml

我是RoR的新手,无法修复错误“无法找到文件'bootstrap / css / bootstrap”。

我经历了很多帖子,但没有解决我的问题。似乎有任何问题 Gem文件(需要升级或删除的东西)或application.css.scss文件找不到'bootstrap / css / bootstrap'或“_stylesheets.html.haml”调用样式表。

有人可以建议吗?


错误:

ActionView :: Template :: Error(找不到文件'bootstrap / css / bootstrap'   (在/root/rails_project/res_dash/app/assets/stylesheets/custom.css.scss:11)):

1: -# CSS: implied media="all"
2: -# = stylesheet_link_tag 'compiled/screen', :media => 'all
3: = stylesheet_link_tag 'application', media: 'screen'   

_stylesheets.html.haml

-# CSS: implied media="all"
-# = stylesheet_link_tag 'compiled/screen', :media => 'all'

= stylesheet_link_tag 'application', media: 'screen'

application.css.scss

 *= require bootstrap/css/bootstrap
 *= require bootstrap_and_overrides
 *= require bootstrap/css/bootstrap-responsive
 *= require font-awesome/sass/font-awesome
 *= require css/style
 *= require css/style_responsive
 *= require css/style_default
 *= require gritter/css/jquery.gritter
 *= require uniform/css/uniform.default
 *= require dataTables/jquery.dataTables.bootstrap
 *= require dataTables/extras/TableTools
 *= require dataTables/extras/TableTools_JUI
 *= require bootstrap-daterangepicker/daterangepicker
 *= require chosen
 *= require fancybox
 *= require dashboard
 *= require res-layout
 *= require_self

的Gemfile

gem "sass"
gem "sass-rails"
gem "haml
.
.
.
.
gem "haml-rails"
gem "compass"
gem "chosen-rails", "~> 0.12.0"
gem "therubyracer"
gem "bootstrap-sass", "2.3.2.0"
gem "twitter-bootstrap-rails"
gem "less-rails"

0 个答案:

没有答案