Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couldn't find file 'jquery', Sprockets::FileNotFound in StaticPages#home error

I am self-studying Michael Hart's guide and am stuck in chapter 7.

When I go to localhost:3000, an error message comes up, saying it couldn't find file jquery and points to line 7 in application.html.erb file.

when I delete the line 7, -> <%= javascript_include_tag "application", "data-turbolinks-track" => true %>, localhost runs normal without an error.

My git repository.

like image 322
Optinovation Avatar asked Nov 02 '22 16:11

Optinovation


1 Answers

I solved this by reverting to

gem 'jquery-rails', '2.1.4'
gem 'jquery-ui-rails', '4.2.1'
like image 178
Paul Avatar answered Nov 09 '22 05:11

Paul