SakuraWi - BLog

WEBエンジニア。聴いたお話をまとめておく倉庫的な。スタックストックスタック!

Sprockets::FileNotFound at / couldn't find file 'action_cable' with type 'application/javascript'の対処


Sprockets::FileNotFound at / couldn’t find file ‘action_cable’ with type ‘application/javascript’

参考ページの解答

Just delete cable.js in /app/assets/javascripts/ and that should fix the problem.

こちらがいっているのは、/app/assets/javascripts/の中にあるcable.jsを消しましょうといっています。 基本的には生成がOFFになっているようですが、なにかしらのミスで入ってしまうことがあるようです。

これを削除するとなおるはずです。

参考資料

ruby on rails - Sprockets::FileNotFound at / couldn't find file 'action_cable' with type 'application/javascript' - Stack Overflow