LoginSignup
3
0

More than 5 years have passed since last update.

Sprockets::FileNotFound in FileName#index

Posted at

Sprockets::FileNotFound in #index

下記エラー

スクリーンショット 2018-01-30 13.12.37.png

// about supported directives.
//
//= require rails-ujs <-- これが無いとのこと
//= require turbolinks
//= require_tree .

なので、削除します。

app/assets/javascripts/application.js

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file. JavaScript code in this file should be added after the last require_* statement.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives./= require rails-ujs
//
                     <- ここにあったものを削除しました。
//= require turbolinks
//= require_tree .

これで表示されます。

3
0
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
3
0