Javascript error in Rails

Hi, I’m getting this error in rails 3.2.3. I think I’ve had it since
installing rails on this system 2 weeks ago. This error appears open
loading the home page of my site.

Rendered static_pages/home.html.erb within layouts/application (0.7ms)
Completed 500 Internal Server Error in 16ms

ActionView::Template::Error (couldn’t find file ‘jquery’
(in
/Users/iamreff/ruby/kidtunes/app/assets/javascripts/application.js:13)):
3:
4: <%= full_title(yield(:title)) %>
5: <%= stylesheet_link_tag “application”, :media => “all” %>
6: <%= javascript_include_tag “application” %>
7: <%= csrf_meta_tags %>
8: <%= render ‘layouts/shim’ %>
9:
app/views/layouts/application.html.erb:6:in
`_app_views_layouts_application_html_erb__240291854059818003_70269114024320’

I installed the jquery-rails gem, ran bundle install and restarted by
rails server to no avail.

How do I get Javascript working on my Rails 3.2.3 install?

Thanks in advance.

-John

Can you post the content of

app/assets/javascripts/application.js:13

and also your Gemfile?

JavierQ

Hola Javier, I figured out what was wrong. Somewhere along the way in
getting Rails installed I had commented out jquery in the Gemfile. I
hate
self inflicted wounds. Thanks for your response.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs