Javascript error in Rails

44 views
Skip to first unread message

@iamreff

unread,
Sep 7, 2012, 9:41:41 PM9/7/12
to rubyonra...@googlegroups.com
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:   <head>
4:     <title><%= full_title(yield(:title)) %></title>
5:     <%= stylesheet_link_tag    "application", :media => "all" %>
6:     <%= javascript_include_tag "application" %>
7:     <%= csrf_meta_tags %>
8:     <%= render '
layouts/shim' %>
9:   </head>
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

Javier Quarite

unread,
Sep 7, 2012, 10:39:33 PM9/7/12
to rubyonra...@googlegroups.com
Can you post the content of 
app/assets/javascripts/application.js:13
and also your Gemfile?

JavierQ

@iamreff

unread,
Sep 8, 2012, 12:09:06 AM9/8/12
to rubyonra...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages