LoginSignup
7
3

More than 5 years have passed since last update.

Ruby on Railsチュートリアルを進めていくうちに、testでAssetが読み込まれないエラーが起きたときの対処について

Last updated at Posted at 2016-06-16

問題

チュートリアル:Ruby on Rails チュートリアル:実例を使って Rails を学ぼうを進めて行くと、なぜかよくわからないけど、下記のようなエラーが出る。

$ rake test
(略)
ActionView::Template::Error:         ActionView::Template::Error: File to import not found or unreadable: bootstrap-sprockets.
(略)

対処

Gemのautoprefixer-railsを入れると解決する

1.Gemfileに gem 'autoprefixer-rails' を追記

2.ターミナルで、bundle install

$ bundle install

3.テスト実行

$ rake test

でとりあえずOKでした。

参考リンク

7
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
3