LoginSignup
9
0

More than 5 years have passed since last update.

Rails tutorial 8 章 エラー「 jQuery を導入できない。」

Posted at

jQuery を、チュートリアルのように、

//= require rails-ujs
//= require jquery
//= require bootstrap
//= require turbolinks
//= require_tree .

app/javascript/application.js
に書き込んだら、

スクリーンショット 2018-08-21 18.16.21.png

jquery 見つからないよ! って怒られました。
このエラーにハマったので、解決法を記します。

Gemfile に、

gem 'jquery-rails', '4.3.1'

を追加して、bundle install するだけでした。。

以上です。皆様の参考になれば幸いです。

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