27歳未経験でエンジニア転職した元営業マン

アルバイトで半年間をドブに捨てた後、2ヶ月でエンジニア転職した記録

ActionView::Template::Error (couldn't find file 'jquery' with type 'application/javascript' Checked in these paths:

エラー内容

ActionView::Template::Error (couldn't find file 'jquery' with type 'application/javascript'
Checked in these paths:
  /Users/tomohiro/work/fight/app/assets/config
  /Users/tomohiro/work/fight/app/assets/images
  /Users/tomohiro/work/fight/app/assets/javascripts
  /Users/tomohiro/work/fight/app/assets/stylesheets
  /Users/tomohiro/work/fight/vendor/cache/gems/coffee-rails-4.2.2/lib/assets/javascripts
  /Users/tomohiro/work/fight/vendor/cache/gems/actioncable-5.2.0/lib/assets/compiled
  /Users/tomohiro/work/fight/vendor/cache/gems/activestorage-5.2.0/app/assets/javascripts
  /Users/tomohiro/work/fight/vendor/cache/gems/actionview-5.2.0/lib/assets/compiled
  /Users/tomohiro/work/fight/vendor/cache/gems/turbolinks-source-5.1.0/lib/assets/javascripts
  /Users/tomohiro/work/fight/node_modules
  /Users/tomohiro/work/fight/vendor/cache/gems/bootstrap-sass-3.3.7/assets/stylesheets
  /Users/tomohiro/work/fight/vendor/cache/gems/bootstrap-sass-3.3.7/assets/javascripts
  /Users/tomohiro/work/fight/vendor/cache/gems/bootstrap-sass-3.3.7/assets/fonts
  /Users/tomohiro/work/fight/vendor/cache/gems/bootstrap-sass-3.3.7/assets/images):
     5:     <%= csrf_meta_tags %>
     6:     <%= csp_meta_tag %>
     7:
     8:     <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
     9:     <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
    10:   </head>
    11:

解決策

Gemfileにgem 'jquery-rails'を追加し、bundle installを実行