I'm working through the Agile Web Development book with Rails version 3.2.13 and Ruby 2.0.0, but I keep getting the following error when trying to access localhost:3000
:
Sprockets::FileNotFound in Store#index
couldn't find file 'jquery' (in /Users/.../app/assets/javascripts/application.js:13)
My application.js
file:
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// ...
//
//= require jquery
//= require jquery-ui
//= require jquery_ujs
//= require_tree .
In my Gemfile
, I have gem 'jquery-rails', '~> 2.3.0'
and have attempted many different solutions I found on the internet to no avail.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…