Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Generate a Scaffold

Philip Campbell
Philip Campbell
15,324 Points

jQuery Missing from Todo List App

I'm getting an error when I open the Todo list app locally:

Sprockets::FileNotFound in TodoLists#index


couldn't find file 'jquery' (in /home/treehouse/projects/odot/app/assets/javascripts/application.js:13)


Extracted source (around line #6):

    <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
    <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
    <%= csrf_meta_tags %>

2 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Just make sure you have jquery in your Gemfile (gem 'jquery-rails'; perform a successful bundle install) and in your application.js (//= require jquery).

P.S. Love the uniform :)

Philip Campbell
Philip Campbell
15,324 Points

I must have made a mistake on my first attempt, because I setup a new project and everything is ok now.