Sass::SyntaxError in Books#index
Showing /Users/me/apps/rails/clones/book_review/app/views/layouts/application.html.erb where line #8 raised:
File to import not found or unreadable: bootstrap.
Load paths:
/Users/me/apps/rails/clones/book_review/app/assets/config
/Users/me/apps/rails/clones/book_review/app/assets/images
/Users/me/apps/rails/clones/book_review/app/assets/javascripts
/Users/me/apps/rails/clones/book_review/app/assets/stylesheets
/Users/me/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/coffee-rails-4.2.2/lib/assets/javascripts
/Users/me/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actioncable-5.2.0/lib/assets/compiled
/Users/me/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activestorage-5.2.0/app/assets/javascripts
/Users/me/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actionview-5.2.0/lib/assets/compiled
/Users/me/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/turbolinks-source-5.1.0/lib/assets/javascripts
/Users/me/apps/rails/clones/book_review/node_modules
Extracted source (around line #18):
16
17
@import "bootstrap";
Rails.root: /Users/me/apps/rails/clones/book_review
Application Trace | Framework Trace | Full Trace
答案 0 :(得分:0)
你究竟安装了什么?提供bundle list
可能会有帮助。
要尝试的事情:
bundle install
application.js
rake assets:precompile
the-gem-name
添加到config/application.rb
以明确要求